Skip to content

Commit

Permalink
Eval now catches all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DV8FromTheWorld committed Apr 23, 2018
1 parent c005130 commit 2a4eb35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void onCommand(MessageReceivedEvent e, String[] args)
"})();");
sendMessage(e, out == null ? "Executed without error." : out.toString());
}
catch (ScriptException e1)
catch (Exception e1)
{
sendMessage(e, e1.getMessage());
}
Expand Down

0 comments on commit 2a4eb35

Please sign in to comment.