mirror of https://github.com/kami-blue/client
[fix] Added error logging to configs
This commit is contained in:
parent
8587e38525
commit
8f1cbfc9d2
|
@ -56,6 +56,7 @@ public class Configuration {
|
||||||
loadConfiguration(new JsonParser().parse(new InputStreamReader(stream)).getAsJsonObject());
|
loadConfiguration(new JsonParser().parse(new InputStreamReader(stream)).getAsJsonObject());
|
||||||
} catch (IllegalStateException e) { // The JSON file is probably malformed.
|
} catch (IllegalStateException e) { // The JSON file is probably malformed.
|
||||||
KamiMod.log.error("KAMI Config malformed: resetting.");
|
KamiMod.log.error("KAMI Config malformed: resetting.");
|
||||||
|
e.printStackTrace();
|
||||||
loadConfiguration(new JsonObject()); // Just reset it!
|
loadConfiguration(new JsonObject()); // Just reset it!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue