$error: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Daveoh (talk | contribs)
No edit summary
 
(No difference)

Latest revision as of 23:15, 6 April 2008

Returns the error message when an error has occurred.

$error

Example

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.

See Also