update error handle