$error will return information about the error, used in onFunctionError commands.
$error
onFunctionError