Skip to content

Commit

Permalink
Fix tiny error message error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 authored Feb 19, 2023
1 parent d17116f commit 4017f34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void reload(ResourceManager manager) {
idPath = idPath.substring(folderPath.length() + 1, idPath.length() - ".json".length());
Identifier resourceId = new Identifier(path.getKey().getNamespace(), idPath);
DataResult<R> result = codec.decode(JsonOps.INSTANCE, json).map(Pair::getFirst);
result.resultOrPartial(error -> LOGGER.error("Error while decoding resource of type {} at {}: {}", id, path, error))
result.resultOrPartial(error -> LOGGER.error("Error while decoding resource of type {} at {}: {}", id, resourceId, error))
.ifPresent(resource -> builder.put(resourceId, resource));
}
} catch(IOException e) {
Expand Down

0 comments on commit 4017f34

Please # to comment.