HDDS-482. NullPointer exception thrown on console when cli operation failed.
Contributed by Nandakumar.
This commit is contained in:
parent
13f0ee21f2
commit
0cb3316cec
|
@ -51,7 +51,7 @@ public class GenericCli implements Callable<Void>, GenericParentCommand {
|
|||
try {
|
||||
execute(argv);
|
||||
} catch (ExecutionException ex) {
|
||||
printError(ex.getCause());
|
||||
printError(ex.getCause() == null ? ex : ex.getCause());
|
||||
System.exit(-1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue