summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-01-03 12:48:21 -0300
committerGitHub <noreply@github.com>2022-01-03 12:48:21 -0300
commit3d35a474a54312bb448bd02403435a3f698a996b (patch)
tree1eb79030b84472586484b1350675bd1b6f738d31
parentd9dd2f75dd8f79d9ebfae4ad5cc3459fc96b69ab (diff)
parent8848fd174a78459131f49579b15ee270f428c2f7 (diff)
downloadpry-3d35a474a54312bb448bd02403435a3f698a996b.tar.gz
Merge pull request #2231 from stevecondylios/master
Updates fail message that occurs when user doesn't have docs installed
-rw-r--r--lib/pry/method.rb5
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