mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
restore stderr logging for main error
This commit is contained in:
parent
3874b3650c
commit
8e172544f1
@ -54,8 +54,9 @@ public class NBCLI {
|
||||
} catch (Exception e) {
|
||||
String error = ScenarioErrorHandler.handle(e,true);
|
||||
if (error!=null) {
|
||||
System.out.println(error);
|
||||
System.err.println(error);
|
||||
}
|
||||
System.err.flush();
|
||||
System.out.flush();
|
||||
System.exit(2);
|
||||
}
|
||||
@ -325,7 +326,7 @@ public class NBCLI {
|
||||
Exception exception = scenariosResults.getOne().getException().get();
|
||||
// logger.warn(scenariosResults.getExecutionSummary());
|
||||
ScenarioErrorHandler.handle(exception,options.wantsStackTraces());
|
||||
System.out.println(exception.getMessage()); // TODO: make this consistent with ConsoleLogging sequencing
|
||||
System.err.println(exception.getMessage()); // TODO: make this consistent with ConsoleLogging sequencing
|
||||
System.exit(2);
|
||||
} else {
|
||||
logger.info(scenariosResults.getExecutionSummary());
|
||||
|
@ -40,7 +40,7 @@ public class ExitStatusIntegrationTests {
|
||||
);
|
||||
String stderr = result.getStderrData().stream().collect(Collectors.joining("\n"));
|
||||
assertThat(stderr).contains("unrecognized option:badparam");
|
||||
assertThat(result.exitStatus).isEqualTo(1);
|
||||
assertThat(result.exitStatus).isEqualTo(2);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user