fix error not getting thrown

This commit is contained in:
Chayapak 2023-08-27 11:29:57 +07:00
parent d4dc8ccdbc
commit 7c4274f7ed

View file

@ -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;
} }