Details
Description
When connecting to karaf using the client script and executing commands a non zero return code is only returned if an exception occurs, however it would be useful to return a non zero return for other errors as well.
For example if the following command is run a non zero return code is returned:
[jsherman@oxygen bin]$ ./client -u admin -p admin1 features:install wrapper Authentication failure [jsherman@oxygen bin]$ echo $? 1
However, the following command also had a failure but the client script returns zero indicating it was successful:
[jsherman@oxygen bin]$ ./client -u admin -p admin features:install wraper Error executing command: No feature named 'wraper' with version '0.0.0' available [jsherman@oxygen bin]$ echo $? 0 [jsherman@oxygen bin]$
It would be nice to know that command resulted in an error.