mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
no longer has to_str method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
068b58b5e8
commit
4a56a0ef5d
2 changed files with 13 additions and 8 deletions
|
@ -923,11 +923,11 @@ class OptionParser
|
|||
end
|
||||
|
||||
def warn(mesg = $!)
|
||||
super(program_name + ': ' + mesg)
|
||||
super("#{program_name}: #{mesg}")
|
||||
end
|
||||
|
||||
def abort(mesg = $!)
|
||||
super(program_name + ': ' + mesg)
|
||||
super("#{program_name}: #{mesg}")
|
||||
end
|
||||
|
||||
=begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue