Skip to content

Commit

Permalink
Use warn to print command alias warning
Browse files Browse the repository at this point in the history
This aligns with other warnings in irb and properly channel the message
to stderr.
  • Loading branch information
st0012 committed Jun 10, 2023
1 parent 212e8b7 commit 79df65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/extend-command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def install_alias_method(to, from, override = NO_OVERRIDE)
alias_method to, from
}
else
Kernel.print "irb: warn: can't alias #{to} from #{from}.\n"
warn "irb: warn: can't alias #{to} from #{from}.\n"
end
end

Expand Down

0 comments on commit 79df65e

Please sign in to comment.