Update of error handler