Sha256: 63fa48bec5d1556c2e3d9203117d3a2a48b2e94d8da06b13027754456fadb148

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

require 'rib'

module Rib; module BottomupBacktrace
  extend Plugin
  Shell.use(self)

  # --------------- Rib API ---------------

  def format_error err
    return super if BottomupBacktrace.disabled?
    message, backtrace = get_error(err)
    "  #{format_backtrace(backtrace).join("\n  ")}\n#{message}"
  end

  def format_backtrace backtrace
    super(backtrace).reverse
  end
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rib-1.5.4 lib/rib/more/bottomup_backtrace.rb
rib-1.5.3 lib/rib/more/bottomup_backtrace.rb
rib-1.5.2 lib/rib/more/bottomup_backtrace.rb