Skip to content

Commit 6ee3ba4

Browse files
committed
Add Excepction class name and message to onPlaybackFailed json event
1 parent 5b3d639 commit 6ee3ba4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/src/main/java/xyz/gianlu/librespot/api/handlers/EventsHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public void onPlaybackResumed(@NotNull Player player, long trackTime) {
9494
public void onPlaybackFailed(@NotNull Player player, @NotNull Exception e) {
9595
JsonObject obj = new JsonObject();
9696
obj.addProperty("event", "playbackFailed");
97-
obj.addProperty("exception", e.getMessage());
97+
obj.addProperty("exception", e.getClass().getCanonicalName());
98+
obj.addProperty("message", e.getMessage());
9899
dispatch(obj);
99100
}
100101

0 commit comments

Comments
 (0)