Skip to content

Commit 0bed6bd

Browse files
committed
Include cause on getAbstractCREException() failure
1 parent 806569a commit 0bed6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/laytonsmith/core/exceptions/CRE/AbstractCREException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static AbstractCREException getAbstractCREException(ConfigRuntimeExceptio
173173
if(ex instanceof AbstractCREException) {
174174
return (AbstractCREException) ex;
175175
}
176-
throw new Error("Unexpected CRE exception that isn't convertable to AbstractCREException");
176+
throw new Error("Unexpected CRE exception that isn't convertable to AbstractCREException", ex);
177177
}
178178

179179
@Override

0 commit comments

Comments
 (0)