I accidentally put the following line of code into an existing script which was being included in a program using the ::requires directive:
if \ var('leftX')' then leftX = 10
The error in the line is the unneeded single quote after the right parenthesis. When I ran my program, ooRexx 3.1.1 produced a Windows XP error window with the single line:
"Open Object Rexx program execution failure: rc = -6"
The title of the error window is "Execution Error"
I have multiple script files that comprise my current program or project. It took a while for me to run down and find the mistake, since every time that I tried to run the program ooRexx immediately produced the error window and stopped.
This line of code is in a public routine and checks to see if an argument was passed to a parameter in a "use arg" statement for the routine. It seems to me that ooRexx could have provided some information as to where the error was encountered -- as it does with many other error messages.