change the name and locality of the error file