refactor(LogHandler): use the exception itself instead of a string for buildSentryErrorMessage
This commit is contained in:
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())));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user