update an error