Handling errors
The script standard error output stream, stderr
, is sent to the centralized logging system.
If the script is terminated with a code other than 0, it means that it failed. In this case, the content of the standard output stream is redirected to a log file and the function invocation results in the following error:
{
"errorType": "BashScriptExecutionError"
}
If the function response exceeds 1 MB, the following error is returned:
{
"errorType": "BashScriptReadOutputError"
}