Sha256: 1dbadaa1a2464344e8bd459816fea60d4559c684498c01a82e2aa9a59ab75f78

Contents?: true

Size: 799 Bytes

Versions: 657

Compression:

Stored size: 799 Bytes

Contents

require_relative 'module'

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

657 entries across 657 versions & 5 rubygems

Version Path
fastlane-2.226.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.225.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.224.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.223.1 snapshot/lib/snapshot/error_handler.rb
fastlane-2.223.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.222.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.221.1 snapshot/lib/snapshot/error_handler.rb
fastlane-2.221.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.220.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.219.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.218.0 snapshot/lib/snapshot/error_handler.rb
fastlane-security-patched-2.216.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.217.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.216.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.215.1 snapshot/lib/snapshot/error_handler.rb
fastlane-2.215.0 snapshot/lib/snapshot/error_handler.rb
fastlane-mercafacil-2.214.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.214.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.213.0 snapshot/lib/snapshot/error_handler.rb
fastlane-2.212.2 snapshot/lib/snapshot/error_handler.rb