Skip to content

Commit

Permalink
Improve resource failure message as we often use that with resource s…
Browse files Browse the repository at this point in the history
…tacks
  • Loading branch information
KnightMiner committed Mar 14, 2024
1 parent 527e831 commit a1c02cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/slimeknights/mantle/util/JsonHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public static JsonObject getJson(Resource resource, ResourceLocation location) {
try (Reader reader = resource.openAsReader()) {
return GsonHelper.parse(reader);
} catch (JsonParseException | IOException e) {
Mantle.logger.error("Failed to load JSON from resource " + location, e);
Mantle.logger.error("Failed to load JSON from resource {} from pack '{}'", location, resource.sourcePackId(), e);
return null;
}
}
Expand Down

0 comments on commit a1c02cd

Please sign in to comment.