refactor(LogHandler): use the exception itself instead of a string for buildSentryErrorMessage

This commit is contained in:
anthorob committed 2024-07-14 00:12:14 -04:00
1 parent aba0441021
commit 0db751af44
4 files changed
+5 -5

No files matched your search

@@ -124,6 +124,6 @@ public class TrackLoadingHandler implements AudioLoadResultHandler {
LogHandler.log(e);
if (!silent)
context.replyToMessage(MessageFunction.buildSentryErrorMessage("Failed to load track: " + e.getMessage()));
context.replyToMessage(MessageFunction.buildSentryErrorMessage(new RuntimeException("Failed to load track: " + e.getMessage())));
}
}