Update error message handling.