Skip to content

Commit

Permalink
Catch ScriptEvent errors better
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 13, 2015
1 parent a2f1654 commit 2aaa5f3
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -222,13 +222,14 @@ public void reset() {
public void fire() {
fires++;
for (ScriptPath path: eventPaths) {
try {
if (matchesScript(this, path.container, path.event)) {
try {
run(path.container, path.event);
}
catch (Exception e) {
dB.echoError(e);
}
}
catch (Exception e) {
dB.echoError("Handling script " + path.container.getName() + " path:" + path.event + ":::");
dB.echoError(e);
}
}
}
Expand Down

0 comments on commit 2aaa5f3

Please sign in to comment.