One could do a simple error check like this.
Logging it to a log file, sending an e-mail or whatever action when an error occurs to report the error can also be used.

 Code:
$rc = Open(1, "c:\somefile.txt", 5)

If @ERROR
	?"There was an error opening the file."
	?"Error code: " @ERROR
	?"Error text: "  @SERROR
EndIf

;More code here.



Edited by Mart (2008-04-17 12:28 PM)
Edit Reason: Typo in the code.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.