Displaying execution errors caught in 'try' during development

Trevor DeVore lists at mangomultimedia.com
Fri Apr 22 12:29:13 EDT 2005


On Apr 22, 2005, at 6:04 AM, Dar Scott wrote:
> However, during development, I'd like to see those errors.
>
> I tried throwing the error again if in the IDE.  For some reason that 
> didn't work.
>
> An alternative is to display the error.
>
> Anybody know how to redo the error or display the error text?

Dar,

I saw the same problem with trying to throw an error from within a 
catch statement.  What I've done is in the first catch statement I 
assign the error text to a variable.  Outside the try statement if the 
variable isn't empty I then throw it.

local e, e2

try

catch e
	put e into e2
end try

if e2 is not empty then throw e2

Maybe that would work in your case.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list