Skip to content

Commit

Permalink
log error when mirroring track and exception happens (#129)
Browse files Browse the repository at this point in the history
# Conflicts:
#	main/src/main/java/com/github/topi314/lavasrc/mirror/DefaultMirroringAudioTrackResolver.java
  • Loading branch information
topi314 committed Oct 17, 2023
1 parent e8a02a6 commit c9c133b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ public AudioItem apply(MirroringAudioTrack mirroringAudioTrack) {
}

provider = provider.replace(MirroringAudioSourceManager.QUERY_PATTERN, getTrackTitle(mirroringAudioTrack));
track = mirroringAudioTrack.loadItem(provider);
try {
track = mirroringAudioTrack.loadItem(provider);
}
catch (Exception e) {
log.error("Failed to load track from provider \"{}\"!", provider, e);
}
if (track != AudioReference.NO_TRACK) {
break;
}
Expand Down

0 comments on commit c9c133b

Please sign in to comment.