Create an error.txt if error exists.
Create an error.txt if error exists.