mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Add exit code to CLI failure termination message (#97004)
Add exit code to CLI failure termination message, to help with loopy diagnosis.
This commit is contained in:
parent
c9e37ef7c5
commit
bdd38c6876
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ public abstract class Command implements Closeable {
|
|||
protected void printUserException(Terminal terminal, UserException e) {
|
||||
if (e.getMessage() != null) {
|
||||
terminal.errorPrintln("");
|
||||
terminal.errorPrintln(Terminal.Verbosity.SILENT, "ERROR: " + e.getMessage());
|
||||
terminal.errorPrintln(Terminal.Verbosity.SILENT, "ERROR: " + e.getMessage() + ", with exit code " + e.exitCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue