MIAMEX 86: Get error message

Updated August 2010

xcall MIAMEX, MX_ERRNOMSG, errno, message

MX_ERRNOSMG returns the operating system’s text message associated with the specified operating system error code (aka errno).

errno  (Num)

is the error number for which you want the message. Note that many MIAMEX functions return operating system errors as negative numbers; these should be converted to absolute value before passing to this function. See History, below.

message  (String)

returns the error message.

See ERRMSG or DERR for information relating to displaying the text corresponding to BASIC error numbers.

History

2010 August, A-Shell 5.1.1189:  It is no longer necessary to convert negative system error numbers to positive before calling the routine. System error codes are all positive, but many subroutines return them as negatives to distinguish errors from other return values, leading many people to forget to use abs() to convert them to positive before using MX_ERRNOMSG.