Log invalid JSON entries

This commit is contained in:
md678685 2018-10-13 16:44:50 +01:00
parent 5c7fc763fc
commit 4cd8a6636b

View File

@ -83,13 +83,13 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
String target = element.getAsString();
itemAliases.put(key, target);
valid = true;
} catch (Exception e) {
// TODO: log invalid entry
}
} catch (Exception ignored) {}
}
if (valid) {
allAliases.add(key);
} else {
LOGGER.warning(String.format("Failed to add item: \"%s\": %s", key, element.toString()));
}
}
}