If an error occurs while saving, the previous file should remain intact
If an error occurs while saving, the previous file should remain intact