I tried to attach an example project (both before and after zipped), but the forums kept showing a server error, so here is the basic structure:
Try
Try
Delete File(s) [c:\temp\1.txt]
Catch
Raise Exception (%ErrorMsg%)
End
Catch
Raise Exception (%ErrorMsg%)
Finally
MessageBox(%ErrorMsg%)
End
The file c:\temp\1.txt doesn’t exist, so it throws an exception.
On both of the “catch” actions I have checked the option to save the error text to a variable (ErrorMsg).
It seems like the text from the inner raise exception isn’t being saved to the variable during the outer catch. It sees the exception text as being blank.
I am using 7.0.0.3202
Is this expected behavior?
-Britain
Hi Britain Crooker,
Thank you for reporting this. It does appear the exception message is being cleared too early. I will look into this and get back to you.
Hi Britain Crooker,
I have found the issue with the catch action. It was clearing the error message when it should not have been. It will not correctly propagate the error message and error action as you would expect.
http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_3519.exe
http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_1903.exe
Thanks! I re-ran my test project, and it now displays the message properly at the end.
-Britain