[fix] Added error logging to configs

This commit is contained in:
living 2020-11-08 00:37:26 -05:00 committed by GitHub
parent 8587e38525
commit 8f1cbfc9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public class Configuration {
loadConfiguration(new JsonParser().parse(new InputStreamReader(stream)).getAsJsonObject());
} catch (IllegalStateException e) { // The JSON file is probably malformed.
KamiMod.log.error("KAMI Config malformed: resetting.");
e.printStackTrace();
loadConfiguration(new JsonObject()); // Just reset it!
}
}