Skip to content

Commit ae8d0c2

Browse files
committed
Fix throwable may break plugin enabling
1 parent b5fd979 commit ae8d0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/rothes/protocolstringreplacer/replacer/ReplacerManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static HashMap<File, CommentYamlConfiguration> loadReplacesFiles(@Nonnull
9595
CommentYamlConfiguration config = new CommentYamlConfiguration();
9696
config.load(file);
9797
loaded.put(file, config);
98-
} catch (IOException | InvalidConfigurationException e) {
98+
} catch (Throwable e) {
9999
ProtocolStringReplacer.warn(PsrLocalization.getLocaledMessage("Console-Sender.Messages.Replacer-Config.Replacer-Failed-To-Load",
100100
file.getAbsolutePath().substring((ProtocolStringReplacer.getInstance().getDataFolder().getAbsolutePath() + "\\").length()).replace('\\', '/')), e);
101101
}

0 commit comments

Comments
 (0)