Catch additional throwables (such as those caused by illegal syntax) when parsing respackopts.json5
This commit is contained in:
parent
eeb393945b
commit
b7017e3813
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue