-
Story
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
This improvement adds functionality to allow end users to pass error messages in user-defined python scripts using methods:
- send_response_err_msg(ret_err_msg)
- send_response_err_msg_and_exit(ret_err_msg, code=1)
User CBA python script should handle their exceptions and then use the above function to pass the error message.
Previous behaviour appended the entire STDOUT to the error message, which was very not clean.
STDOUT is still available to be returned as normal:
See the attached presentation on the improvement, and cmdexecerrors2.zip for the sample CBA examples of the python script usage.