Skip to content
Permalink
Browse files

Use event name target instead of bind function when event does not exist

  • Loading branch information...
PseudoKnight committed Sep 5, 2019
1 parent 291befb commit 9991bdbdee7ba457517e525ad7d3d11d71835aac
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/laytonsmith/core/functions/EventBinding.java
@@ -214,7 +214,7 @@ public void link(Target t, List<ParseTree> children) throws ConfigCompileExcepti
try {
EventUtils.verifyEventName(name);
} catch (IllegalArgumentException ex) {
throw new ConfigCompileException(ex.getMessage(), t);
throw new ConfigCompileException(ex.getMessage(), children.get(0).getTarget());
}
}

0 comments on commit 9991bdb

Please sign in to comment.
You can’t perform that action at this time.