Skip to content

Commit 8c933bf

Browse files
committed
log json error better
1 parent 60bafe2 commit 8c933bf

File tree

1 file changed

+1
-1
lines changed
  • platform_api/src/main/java/net/modfest/platform/misc

1 file changed

+1
-1
lines changed

platform_api/src/main/java/net/modfest/platform/misc/JsonUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public <T> T readJson(Path path, Class<T> clazz) {
3434
// to unchecked exceptions, since we'd be passing them up the chain any way
3535
// Maybe in the future we can assure that io errors are even harder errors,
3636
// and will shut the server down.
37-
throw new RuntimeException(e);
37+
throw new RuntimeException("Failed while parsing: %s".formatted(path.toString()), e);
3838
}
3939
}
4040

0 commit comments

Comments
 (0)