Sha256: c2e22f8ed5e58ffd9f0a44f43ce495838b584151628e1367a8ce62ee6e2b3ace

Contents?: true

Size: 771 Bytes

Versions: 477

Compression:

Stored size: 771 Bytes

Contents

module Snapshot
  class ErrorHandler
    class << self
      # @param [Array] The output of the errored build (line by line)
      # This method should raise an exception in any case, as the return code indicated a failed build
      def handle_test_error(output, return_code)
        # The order of the handling below is import

        if return_code == 65
          UI.user_error!("Tests failed - check out the log above")
        end

        case output
        when /com\.apple\.CoreSimulator\.SimError/
          UI.important "The simulator failed to launch - retrying..."
        when /is not configured for Running/
          UI.user_error!("Scheme is not properly configured, make sure to check out the snapshot README")
        end
      end
    end
  end
end

Version data entries

477 entries across 477 versions & 2 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 snapshot/lib/snapshot/error_handler.rb
fastlane-2.73.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.73.0.beta.20180105010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.73.0.beta.20180104010004 snapshot/lib/snapshot/error_handler.rb
fastlane-2.73.0.beta.20180103010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0.beta.20180102010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0.beta.20180101010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0.beta.20171231010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.1 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0.beta.20171230010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0.beta.20171229010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.72.0.beta.20171228010004 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0.beta.20171227010004 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0.beta.20171226010004 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0.beta.20171225010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0.beta.20171224010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0.beta.20171223010003 snapshot/lib/snapshot/error_handler.rb
fastlane-2.71.0.beta.20171222010003 snapshot/lib/snapshot/error_handler.rb