Update error handling.