$error: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
No edit summary |
(No difference)
|
Returns the error message when an error has occurred.
$error
testerror { msg Dana halt :error echo Error in script! $error }
Running the above alias would create an error. This would jump to the :error point and run the commands afterwards, echoing the error message.