Sha256: 56315ba1759e6b52f2e4b3a72bcb1ad278f471125988a0a463f099ab99dbe4fa

Contents?: true

Size: 306 Bytes

Versions: 7

Compression:

Stored size: 306 Bytes

Contents

require 'rib'

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rib-1.4.0 lib/rib/more/bottomup_backtrace.rb
rib-1.3.1 lib/rib/more/bottomup_backtrace.rb
rib-1.3.0 lib/rib/more/bottomup_backtrace.rb
rib-1.2.91 lib/rib/more/bottomup_backtrace.rb
rib-1.2.9 lib/rib/more/bottomup_backtrace.rb
rib-1.2.8 lib/rib/more/bottomup_backtrace.rb
rib-1.2.7 lib/rib/more/bottomup_backtrace.rb