phrSetErrorFileOn function

Set error file on/off.