Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Sep 12, 2024
1 parent 215ddc5 commit 7d6bdb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions JL.Core/Mining/Anki/AnkiConnect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ public static async Task Sync()
}
catch (HttpRequestException ex)
{
Utils.Frontend.Alert(AlertLevel.Error, "Communication error: Is Anki open?");
Utils.Logger.Error(ex, "Communication error: Is Anki open?");
Utils.Frontend.Alert(AlertLevel.Error, "Couldn't connect to AnkiConnect. Please ensure Anki is open and AnkiConnect is installed.");
Utils.Logger.Error(ex, "Couldn't connect to AnkiConnect. Please ensure Anki is open and AnkiConnect is installed.");
return null;
}
catch (Exception ex)
{
Utils.Frontend.Alert(AlertLevel.Error, "Communication error: Unknown error");
Utils.Logger.Error(ex, "Communication error: Unknown error");
Utils.Frontend.Alert(AlertLevel.Error, "Couldn't connect to AnkiConnect");
Utils.Logger.Error(ex, "Couldn't connect to AnkiConnect");
return null;
}
}
Expand Down

0 comments on commit 7d6bdb1

Please sign in to comment.