fix error message in music

This commit is contained in:
Chayapak 2023-09-19 16:33:16 +07:00
parent 7c15ea84a2
commit e3aecbb07b

View file

@ -144,6 +144,8 @@ public class MusicCommand extends Command {
throw new CommandException(Component.text("Invalid URL"));
} catch (IndexOutOfBoundsException e) {
throw new CommandException(Component.text("Song not found"));
} catch (CommandException e) {
throw e;
} catch (Exception e) {
throw new CommandException(Component.text(e.toString()));
}