Your error handler simply returns "here1", in your save_subsrbr method, you call errorhandler in void context, which means you throw away the return value of the errorhandler. If you want the return value of errorhandler to be output, you need to specifically save it and print it.