Put the raise <error> statement back in and catch it in the main program.