Skip to content

Commit

Permalink
Groovy REPL: do not save HelpException to console variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Dec 27, 2020
1 parent 82b7c38 commit 785c06a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,9 @@ public void trace(Exception exception) {
outputStream.close();
ConsoleEngine consoleEngine = consoleEngine();
if (consoleEngine != null) {
consoleEngine.putVariable("exception", exception);
if (!(exception instanceof Options.HelpException)) {
consoleEngine.putVariable("exception", exception);
}
consoleEngine.trace(exception);
} else {
trace(false, exception);
Expand Down

0 comments on commit 785c06a

Please sign in to comment.