Dim(message, string) GetLastError(message) : Hi, : I using the following custom error handling code: OnErrorGoTo ERR_HANDLER : . : . : . : ERR_HANDLER: FileClose (LogFileHandle) : FileOpen (LogPath, "LineMode", "Write", True, : LogFileHandle) : ConcatEx ("ERROR OCCURED WHILE PROCESSING", FileData) : FileWrite (LogFileHandle, FileData) : ConcatEx ("24x7 Schedule -- ", @T"yyyy-mm-dd", " : ", @T"hh:mm:ss", " Execution END WITH ERRORS", : FileData) : FileWrite (LogFileHandle, FileData) : FileClose (LogFileHandle) : I would like to include the error message the occured in the log file. : How would I access in error message from within my script? : In VB one would use Err.Description to get error message description. : Thanks
|