$error

From Scriptwiki
Revision as of 00:15, 7 April 2008 by Daveoh (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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