The GetError function gets a description of the last error that occurred.
CALL ui.Interface.frontCall("WinMail","GetError", [ id ], [ result ] )