mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -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();
|
ShutdownManager.shutdown();
|
||||||
|
|
||||||
if (scenariosResults.hasError()) {
|
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);
|
System.exit(2);
|
||||||
} else {
|
} else {
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user