helpful error message added

This commit is contained in:
Nut
2021-12-26 14:02:14 +01:00
committed by GitHub
parent 28a1d0b09e
commit 084b23f641

View File

@@ -53,6 +53,10 @@ public abstract class JSONElement extends GameDataElement {
} catch (ParseException e) {
Notification.addError("Error while parsing JSON file "+jsonFile.getAbsolutePath()+": "+e.getMessage());
e.printStackTrace();
} catch (IllegalArgumentException e) {
System.out.println(id);
Notification.addError("Error while parsing JSON file "+jsonFile.getAbsolutePath()+": "+e.getMessage());
e.printStackTrace();
} finally {
if (reader != null)
try {