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