error handler for mycheck_output