Re: crash message in 4.0
- Posted by jeremy (admin) Aug 17, 2008
- 944 views
I am not sure what you are doing with crash message, but let's say you are removing and old ?1/0 type error to cause a crash...
if param = bad then puts(1, "bad parameter") ? 0/1 end if
You can now use crash() for that purpose and you will get your custom crash message and a full error report:
if param = bad then crash("parameter was bad") end if
This causes a full crash log with your error message, stack output, etc...
crash_message is designed for deployed applications to do something like:
Your program crashed. You should contact Bernie at 555-1212 for assistance or email to bernie@helpme.com. Please be sure to includ ex.err as an email attachment.
Jeremy