Open Martin-Zeithaml opened 1 month ago
Sean suggests returning 8 for all failures and putting the particular status in a environment variable.
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.
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: