fix error message in music
This commit is contained in:
parent
7c15ea84a2
commit
e3aecbb07b
1 changed files with 2 additions and 0 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue