Changed an error handler.