in reply to How to determine of script executed correctly?
You might find the replies of Toolic and Moritz to my question about Testing error handling that calls "die" will do what you want.
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (172 votes). Check out past polls.