summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-06-10 16:01:41 +0100
committergit <svn-admin@ruby-lang.org>2023-06-10 15:01:46 +0000
commite1ccb2838b65f23e7a21bdd416160d03dd73e7f8 (patch)
tree849b946af3933efed3a8907d62d79872799428d3 /lib/irb/extend-command.rb
parentbe86767eeff745ac4d0255fa5d14da99e32f59bd (diff)
[ruby/irb] Use `Kernel.warn` to print command alias warning
(https://github.com/ruby/irb/pull/601) This aligns with other warnings in irb and properly channel the message to stderr.
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index e377148fb4..8b074262ee 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -289,7 +289,7 @@ module IRB # :nodoc:
alias_method to, from
}
else
- Kernel.print "irb: warn: can't alias #{to} from #{from}.\n"
+ Kernel.warn "irb: warn: can't alias #{to} from #{from}.\n"
end
end