show error when exit status is non-zero

This commit is contained in:
Jonathan Shook 2020-05-04 16:29:29 -05:00
parent 815cdedf6f
commit 9560bd8636

View File

@ -306,6 +306,9 @@ public class NBCLI {
ShutdownManager.shutdown();
if (scenariosResults.hasError()) {
Exception exception = scenariosResults.getOne().getException().get();
System.err.println("ERROR while running scenario: " + exception.getMessage());
exception.printStackTrace(System.err);
System.exit(2);
} else {
System.exit(0);