diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-15 14:54:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-15 14:54:01 +0000 |
commit | 4a56a0ef5d096b9440c1221bcfb734b4607077de (patch) | |
tree | 70e981665c0353e3520f7491cb6bf1867f9315dd /lib/optparse.rb | |
parent | 068b58b5e8c978669bb8586b26dccb2b9e90ebd9 (diff) | |
download | ruby-4a56a0ef5d096b9440c1221bcfb734b4607077de.tar.gz |
* 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
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 761504a82f..95ed84884f 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -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 |