lib/lsync.rb in lsync-2.3.1 vs lib/lsync.rb in lsync-2.3.2

- old
+ new

@@ -37,9 +37,13 @@ module LSync def self.run_script(options = {}, &block) script = LSync::Script.new(options, &block) + script.on(:failure) do |error| + LSync::log_error(error, logger) + end + script.run! end end