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.
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (69 votes),