Output error to separate file each time