Revert to original code
Change location of error file