update error file