question about "stop" keyword

Anything that doesn't fit elsewhere.
Post Reply
bhalterm
Posts: 52
Joined: Wed Mar 08, 2006 10:43 am
Location: University of Pennsylvania

question about "stop" keyword

Post by bhalterm »

Is there something similar to the stop keyword that prints out a stack trace before returning control to the interpreter? I was doing things like returning no value for funcs and obfuncs or returning a value for procs to produce the stack trace, but this seems awkward. I am printing a string with an error message, but that isn't usually that helpful without a stack trace. I'm also worried that someone using my code could see the part of the normal error message "(proc or iterator) returns value" or "(func) returns no value" and think that they need to fix that, when that is actually just being used as a flag and the real problem lies elsewhere.
hines
Site Admin
Posts: 1710
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

You can use
execerror("string", "string")
Post Reply