added error message if generated file exists