You must take the actual error after invoking getLastError and populate it on the Exit step, or disable/remove the Catch block, to see the error in the logs.
Reason - Main is set to SUCCESS, Catch is set to DONE, so the flow service is seen to be successful since the error is handled (i.e., Main is seen as successful). I’ll elaborate this reason behind this in the morning; it’s late night for me now.
Did you check this? It would’ve showed success, before you added the Exit step.
KM
#webMethods#Integration-Server-and-ESB