Updates error handling.