lib/snapsync/sync_all.rb in snapsync-0.1.7 vs lib/snapsync/sync_all.rb in snapsync-0.1.8
- old
+ new
@@ -49,10 +49,14 @@
each_target do |config, target|
if !target.enabled?
Snapsync.warn "not synchronizing to #{target.dir}, it is disabled"
next
end
- Sync.new(config, target, autoclean: autoclean?).run
+ begin
+ Sync.new(config, target, autoclean: autoclean?).run
+ rescue Exception => e
+ Snapsync.warn "failed to synchronization #{config.name} on #{target.dir}"
+ end
end
end
end
end