Sha256: ef2bcae1c6e079b22daf5580f2d2f51efa8eeb8a2ca431d9874ae868c18cc5db

Contents?: true

Size: 344 Bytes

Versions: 16

Compression:

Stored size: 344 Bytes

Contents

module Beaker
  module Shared
    module ErrorHandler
      def report_and_raise(logger, e, msg)
        logger.error "Failed: errored in #{msg}"
        logger.error(e.inspect)
        bt = e.backtrace
        logger.pretty_backtrace(bt).each_line do |line|
          logger.error(line)
        end
        raise e
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beaker-6.4.1 lib/beaker/shared/error_handler.rb
beaker-6.4.0 lib/beaker/shared/error_handler.rb
beaker-6.3.0 lib/beaker/shared/error_handler.rb
beaker-6.2.0 lib/beaker/shared/error_handler.rb
beaker-6.1.0 lib/beaker/shared/error_handler.rb
beaker-5.8.1 lib/beaker/shared/error_handler.rb
beaker-5.8.0 lib/beaker/shared/error_handler.rb
beaker-5.7.0 lib/beaker/shared/error_handler.rb
beaker-5.6.0 lib/beaker/shared/error_handler.rb
beaker-5.5.0 lib/beaker/shared/error_handler.rb
beaker-5.4.0 lib/beaker/shared/error_handler.rb
beaker-5.3.1 lib/beaker/shared/error_handler.rb
beaker-5.3.0 lib/beaker/shared/error_handler.rb
beaker-5.2.0 lib/beaker/shared/error_handler.rb
beaker-5.1.0 lib/beaker/shared/error_handler.rb
beaker-5.0.0 lib/beaker/shared/error_handler.rb