diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java index 0c38727..c13b782 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java @@ -268,9 +268,11 @@ public class MusicCommand extends Command { index += eachSize; list.clear(); } - } catch (NotDirectoryException e) { + } catch (NoSuchFileException e) { return Component.text("Directory doesn't exist").color(NamedTextColor.RED); - } catch (IOException ignored) {} + } catch (IOException e) { + e.printStackTrace(); + } return null; }