fastlane/lib/fastlane/runner.rb in fastlane-2.30.0.beta.20170511010018 vs fastlane/lib/fastlane/runner.rb in fastlane-2.30.0

- old
+ new

@@ -251,16 +251,19 @@ class_ref.runner = self # needed to call another action form an action class_ref.run(arguments) end end 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 + FastlaneCore::CrashReporter.report_crash(type: type, exception: e, action: method_sym) collector.did_crash(method_sym) raise e end end