summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2019-12-18 15:02:31 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-02 12:46:17 +0900
commitfbe37ff37a291f138d9a1119df257174005e7086 (patch)
treeb54d80a7870e432b0de3d6928d167e03fd890dd1
parent0ad7f2dd19c84e44b8fd8d314de33c3e2255feb6 (diff)
Emit warning when 'did_you_mean' was not properly loaded.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2764
-rw-r--r--gem_prelude.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index d25cc49f25..87f59fd381 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -6,4 +6,5 @@ end if defined?(Gem)
begin
require 'did_you_mean'
rescue LoadError
+ warn "`did_you_mean' was not loaded."
end if defined?(DidYouMean)