Skip to content

Commit

Permalink
Added Sentry logging to crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazawrath committed Jan 14, 2020
1 parent f734f87 commit bd55e36
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,15 @@ public void onCommand(ServerTextChannel serverTextChannel, DiscordApi api, User
winnersMessage.append("The correct answer was: ").append(correctAnswer).append(".\nAnyone who answered correctly received ").append(Points.pointsToString(Points.TRIVIA_CORRECT_ANSWER)).append(".");

serverTextChannel.sendMessage(winnersMessage.toString());
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
} catch (Exception e) {
e.printStackTrace();
Sentry.capture(e);
serverTextChannel.sendMessage("Attempted to send trivia message but failed.");
}
}).start();
} catch (Exception e) {
serverTextChannel.sendMessage("Attempted to send trivia message but failed.");
Sentry.capture(e);
return;
}
} else {
Expand Down

0 comments on commit bd55e36

Please sign in to comment.