cat --ex needs to convert negative frame number to positive equivalent #710

Closed
banister opened this Issue Sep 13, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@banister
Member

banister commented Sep 13, 2012

From below, it should say level 26 of 26 not level -1 of 26

from (pry):1:in `/'
[2] pry(main)> cat --ex
Exception: ZeroDivisionError: divided by 0
--
From: (pry) @ line 1 @ level: 0 of backtrace (of 26).

 => 1: 1/0
[3] pry(main)> cat --ex -1
Exception: ZeroDivisionError: divided by 0
--
From: C:/Ruby193/bin/pry @ line 23 @ level: -1 of backtrace (of 26).

    18:     ARGV.shift
    19:   end
    20: end
    21:
    22: gem 'pry', version
 => 23: load Gem.bin_path('pry', 'pry', version)

@banister banister closed this in ba0d052 Oct 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment