Returns the step result. Using this function is meaningful when you are handling errors with protected blocks. The failed-step function must be part of the "On Error" handler, otherwise the step where you are using it will fail because there is no erroneous step.
As such, this function does not indicate the step where the error occurred. To find the result's attributes, pass this function as argument to functions such as stdout or stderr, for example:
failed-step() -> result
See the following examples: