forked from ChomeNS/chomens-bot-java
fix error not getting thrown
This commit is contained in:
parent
d4dc8ccdbc
commit
7c4274f7ed
1 changed files with 4 additions and 2 deletions
|
@ -268,9 +268,11 @@ public class MusicCommand extends Command {
|
||||||
index += eachSize;
|
index += eachSize;
|
||||||
list.clear();
|
list.clear();
|
||||||
}
|
}
|
||||||
} catch (NotDirectoryException e) {
|
} catch (NoSuchFileException e) {
|
||||||
return Component.text("Directory doesn't exist").color(NamedTextColor.RED);
|
return Component.text("Directory doesn't exist").color(NamedTextColor.RED);
|
||||||
} catch (IOException ignored) {}
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue