xcall MIAMEX, MX_PRINTERR, errnum
MX_PRINTERR (MIAMEX 28) outputs the standard error message associated with the last processed error. It is generally used within LIT programs to display standard error messages. errnum is a floating point which will receive the error number.
See ERRMSG for a more powerful and flexible method of handling error messages.