From 30647d6d2868184ae73b1fa069d6cef4a801ab79 Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Sat, 28 Sep 2024 11:36:52 +0100 Subject: [PATCH] Include type when post-process fails so documentation can be linked in exception --- .../java/org/battleplugins/arena/config/ArenaConfigParser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/src/main/java/org/battleplugins/arena/config/ArenaConfigParser.java b/plugin/src/main/java/org/battleplugins/arena/config/ArenaConfigParser.java index ed657275..accda881 100644 --- a/plugin/src/main/java/org/battleplugins/arena/config/ArenaConfigParser.java +++ b/plugin/src/main/java/org/battleplugins/arena/config/ArenaConfigParser.java @@ -56,6 +56,7 @@ public static T newInstance(@Nullable Path sourceFile, Class type, Config } catch (Throwable t) { throw new ParseException("Failed to post-process instance of class " + type.getName(), t) .cause(ParseException.Cause.INTERNAL_ERROR) + .type(type) .sourceFile(sourceFile); } }