By default don't save files that have errors.

Also added two options --stop-on-error and --continue-error