Closed fredrik-corneliusson closed 2 months ago
In web the exit status of the command is communicated. Add a json object with information on exit status to last line in the rawoutput response text.
Examples: for OK: {"result": "OK", "returncode": 0, "message": "Done"} for ERROR: {"result": "ERROR", "returncode": 2, "message": "Script exited with error code: 2"}
{"result": "OK", "returncode": 0, "message": "Done"}
{"result": "ERROR", "returncode": 2, "message": "Script exited with error code: 2"}
In web the exit status of the command is communicated. Add a json object with information on exit status to last line in the rawoutput response text.
Examples: for OK:
{"result": "OK", "returncode": 0, "message": "Done"}
for ERROR:{"result": "ERROR", "returncode": 2, "message": "Script exited with error code: 2"}