Sha256: 309ac2f86910f8d1871a3e2e504eab5f664dc7c305c170402211800020f23637

Contents?: true

Size: 330 Bytes

Versions: 23

Compression:

Stored size: 330 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

23 entries across 23 versions & 1 rubygems

Version Path
beaker-1.11.0 lib/beaker/shared/error_handler.rb
beaker-1.10.0 lib/beaker/shared/error_handler.rb
beaker-1.9.1 lib/beaker/shared/error_handler.rb
beaker-1.9.0 lib/beaker/shared/error_handler.rb
beaker-1.8.2 lib/beaker/shared/error_handler.rb
beaker-1.8.1 lib/beaker/shared/error_handler.rb
beaker-1.8.0 lib/beaker/shared/error_handler.rb
beaker-1.7.0 lib/beaker/shared/error_handler.rb
beaker-1.6.2 lib/beaker/shared/error_handler.rb
beaker-1.6.1 lib/beaker/shared/error_handler.rb
beaker-1.6.0 lib/beaker/shared/error_handler.rb
beaker-1.5.0 lib/beaker/shared/error_handler.rb
beaker-1.4.1 lib/beaker/shared/error_handler.rb
beaker-1.4.0 lib/beaker/shared/error_handler.rb
beaker-1.3.2 lib/beaker/shared/error_handler.rb
beaker-1.3.1 lib/beaker/shared/error_handler.rb
beaker-1.3.0 lib/beaker/shared/error_handler.rb
beaker-1.2.0 lib/beaker/shared/error_handler.rb
beaker-1.1.0 lib/beaker/shared/error_handler.rb
beaker-1.0.1 lib/beaker/shared/error_handler.rb