$backgroundProcess.getLastError

Returns the last error which occured executing the named background process.
Syntax
    $backgroundProcess.getLastError{background_process_name}
DocumentationReturns the last error which occured executing the named background process.
The last error is not overwritten by successive successful runs.
    Paramter:
      1: Background process name.
    Returns:
      Text of the last error.
    Throws:
      IllegalArgumentException if a background process with the given name does not exist.
Examples
Last error:
$backgroundProcess.getLastError{myProcess}
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 1