diff options
author | Steve Condylios <steve.condylios@gmail.com> | 2022-01-04 02:30:37 +1100 |
---|---|---|
committer | Steve Condylios <steve.condylios@gmail.com> | 2022-01-04 02:30:37 +1100 |
commit | 8848fd174a78459131f49579b15ee270f428c2f7 (patch) | |
tree | 1eb79030b84472586484b1350675bd1b6f738d31 /lib | |
parent | d9dd2f75dd8f79d9ebfae4ad5cc3459fc96b69ab (diff) | |
download | pry-8848fd174a78459131f49579b15ee270f428c2f7.tar.gz |
Update missing docs fail message to include directives for installation and loading.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pry/method.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pry/method.rb b/lib/pry/method.rb index ebb45e71..b0237f6c 100644 --- a/lib/pry/method.rb +++ b/lib/pry/method.rb @@ -530,8 +530,9 @@ class Pry else fail_msg = "Cannot locate this method: #{name}." if Helpers::Platform.mri? - fail_msg += " Invoke the 'gem-install pry-doc' Pry command to get " \ - "access to Ruby Core documentation.\n" + fail_msg += " Run 'gem install pry-doc' to install" \ + " Ruby Core documentation," \ + " and 'require pry-doc' to load it.\n" end raise CommandError, fail_msg end |