fastlane/lib/fastlane/runner.rb in fastlane-2.31.0.beta.20170512010054 vs fastlane/lib/fastlane/runner.rb in fastlane-2.31.0.beta.20170513010043
- old
+ new
@@ -250,14 +250,16 @@
class_ref.runner = self # needed to call another action form an action
class_ref.run(arguments)
end
end
+ rescue \
+ FastlaneCore::Interface::FastlaneBuildFailure, # build_failure!
+ FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
+ raise e
rescue FastlaneCore::Interface::FastlaneError => e # user_error!
FastlaneCore::CrashReporter.report_crash(type: :user_error, exception: e, action: method_sym)
collector.did_raise_error(method_sym)
- raise e
- rescue FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
raise e
rescue Exception => e # rubocop:disable Lint/RescueException
# high chance this is actually FastlaneCore::Interface::FastlaneCrash, but can be anything else
# Catches all exceptions, since some plugins might use system exits to get out
type = e.kind_of?(FastlaneCore::Interface::FastlaneCrash) ? :crash : :exception