lib/snapsync/sync_all.rb in snapsync-0.1.8 vs lib/snapsync/sync_all.rb in snapsync-0.2.0

- old
+ new

@@ -51,11 +51,20 @@ Snapsync.warn "not synchronizing to #{target.dir}, it is disabled" next end begin Sync.new(config, target, autoclean: autoclean?).run + rescue Interrupt + raise rescue Exception => e Snapsync.warn "failed to synchronization #{config.name} on #{target.dir}" + PP.pp(e, buffer = String.new) + buffer.each_line do |line| + Snapsync.warn " #{line}" + end + e.backtrace.each do |line| + Snapsync.debug " #{line}" + end end end end end end