Bash function error handling
Written by
Updated at February 10, 2023
The standard error output stream, stderr
, of a Bash script is sent to a 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"
}