fixed error output for new files