lib/autobuild/utility.rb in autobuild-1.19.0 vs lib/autobuild/utility.rb in autobuild-1.20.0

- old
+ new

@@ -102,19 +102,21 @@ end def call_task_block @invoked = true - yield if block_given? - @success = true + begin + yield if block_given? + @success = true + rescue StandardError => e + install if install_on_error? && !@installed && target_dir + raise + end # Allow the user to install manually in the task # block install if !@installed && target_dir - rescue Interrupt - raise - rescue ::Exception => e - install if install_on_error? && !@installed && target_dir + rescue StandardError => e @success = false if Autobuild.send("pass_#{name}_errors") raise else