Sha256: bbbdec765ffcedad395571ff9e264b350d431f45b22a80eeee4d134db0a620e6

Contents?: true

Size: 613 Bytes

Versions: 302

Compression:

Stored size: 613 Bytes

Contents

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

302 entries across 302 versions & 1 rubygems

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