Skip to content

Loading…

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

Closed
banister opened this Issue · 0 comments

1 participant

@banister
pry member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.