@SERROR.

@ERROR returns the error number, @SERROR the error message (if it can be resolved).

I just used this mini-script to display it:
Code:
$=Execute("Exit 1801")
@ERROR " : "+@SERROR ?