Skip to content

Commit

Permalink
Add better logging for an Error thrown in optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed Sep 4, 2019
1 parent e7c7abe commit 4925614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/laytonsmith/core/MethodScriptCompiler.java
Expand Up @@ -2314,6 +2314,8 @@ private static void optimize(ParseTree tree, Environment env,
} catch (ConfigRuntimeException e) {
//Turn it into a compile exception, then rethrow
throw new ConfigCompileException(e);
} catch (Error t) {
throw new Error("The linked Error had a code target on or around " + tree.getData().getTarget(), t);
}
if(tempNode == Optimizable.PULL_ME_UP) {
if(tree.hasChildren()) {
Expand Down

0 comments on commit 4925614

Please sign in to comment.