Returns a character string containing the name of the device that generated a critical error.
ERDEV$
The MS-DOS critical error handler sets the value for ERDEV$
.
ON ERROR GOTO Handler
...
Handler:
PRINT "Error accessing device "; ERDEV$
PRINT "Error status code "; ERDEV
...