mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-28 01:31:05 -06:00
show error when exit status is non-zero
This commit is contained in:
parent
815cdedf6f
commit
9560bd8636
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user