Krishnan,
This does what you want:
procedure(myErrorHandler(info)
hiDisplayAppDBox(
?name 'myErrorDialog
?dboxBanner "Error occurred"
?dboxText info
?dialogType hicErrorDialog
?buttonLayout 'Close
?dialogStyle 'modal
)
)
ilAddTopLevelErrorHandler('myErrorHandler)
By the way, if you use errset, you can either pass t as the second argument to errset, and then it will still print the error message. Or you can get the message info by accessing errset.errset . For example:
errset(testing() t)
*Error* times: can't handle ("try" * 2)
unless(errset(testing())
printf("GOT THIS: %L\n" errset.errset)
)
GOT THIS: ("times" 0 t nil ("*Error* times: can't handle (\"try\" * 2)"))
You can find out more on errset.errset in the documentation for errset().
Regards,
Andrew.