Catch additional throwables (such as those caused by illegal syntax) when parsing respackopts.json5

This commit is contained in:
Johannes Frohnmeyer 2023-02-23 20:44:22 +01:00
parent eeb393945b
commit b7017e3813
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class ResourcePackManagerMixin {
try (InputStream is = conf.get()) {
rpo$readConfiguration(is, dataLocation, rpi.getName(), displayName, toRemove);
return;
} catch (IOException e) {
} catch (Throwable e) {
String message = "Could not read respackopts config in root for " + profileName;
if (RespackoptsConfig.debugLogs) Respackopts.LOGGER.error(message, e);
else Respackopts.LOGGER.error(message);