Skip to content

Commit 7e48928

Browse files
committed
Log the error before the event
1 parent 803563e commit 7e48928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cyberia.Cytrusaurus/CytrusWatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ await _onlineMonitoredFileRepository.UpsertAsync(new OnlineMonitoredFile
159159
}
160160
catch (HttpRequestException e)
161161
{
162-
await OnCytrusErroredAsync(new CytrusErroredEventArgs(e, "An error occurred while sending a GET request to the Cytrus URL, see the logs for more details."));
163162
Log.Error(e, "An error occurred while sending a GET request to {CytrusUrl}", $"{BaseUrl}/{CytrusFileName}");
163+
await OnCytrusErroredAsync(new CytrusErroredEventArgs(e, "An error occurred while sending a GET request to the Cytrus URL, see the logs for more details."));
164164

165165
return;
166166
}

0 commit comments

Comments
 (0)