We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The function print_error_and_exit is ending with exit command, which accepts any number, however only the least significant 8bits are used.
print_error_and_exit
For example: in case of missing useConfigmgr=true, this returns 60:
useConfigmgr=true
/zowe/bin: ./zwe components search --component-id org.zowe.zlux.sample.angular Error ZWEL0316E: Command requires zowe.useConfigmgr=true to use. /zowe/bin: echo $? 60
The text was updated successfully, but these errors were encountered:
Sean suggests returning 8 for all failures and putting the particular status in a environment variable.
Sorry, something went wrong.
And the same for JS:
echo "import * as std from 'cm_std'; std.exit(316);" > test_exit.js /zowe/bin/utils/configmgr -script test_exit.js echo $? 60
This is an external breaking changes and should be done within the 3.0 releases.
No branches or pull requests
The function
print_error_and_exit
is ending with exit command, which accepts any number, however only the least significant 8bits are used.For example: in case of missing
useConfigmgr=true
, this returns 60:The text was updated successfully, but these errors were encountered: