Sha256: 197b0572976d04a6ac4fe37b6ceb15c21b54d969abc59dcb39d2ddd28db51844

Contents?: true

Size: 652 Bytes

Versions: 73

Compression:

Stored size: 652 Bytes

Contents

require_relative 'fastlane_exception'

module FastlaneCore
  class Interface
    class FastlaneShellError < FastlaneException
      def prefix
        '[SHELL_ERROR]'
      end

      def trimmed_backtrace
        backtrace = trim_backtrace(method_name: 'shell_error!')

        # we also want to trim off the shell invocation itself, which means
        # removing any lines from the backtrace that contain functions
        # in `sh_helper.rb`
        backtrace.drop_while { |frame| frame.include?('sh_helper.rb') }
      end

      def could_contain_pii?
        caused_by_calling_ui_method?(method_name: 'shell_error!')
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
fastlane-2.85.0.beta.20180305050037 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.85.0.beta.20180304050031 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.85.0.beta.20180303050048 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.85.0.beta.20180302050035 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.84.0 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.84.0.beta.20180301050048 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.84.0.beta.20180228050122 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.84.0.beta.20180227050054 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.83.0 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.83.0.beta.20180226050016 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.83.0.beta.20180225050035 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.83.0.beta.20180224050047 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180223010003 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180222010003 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180221010003 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180220010002 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180219010003 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180218010003 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
fastlane-2.82.0.beta.20180217010002 fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb