summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-15 14:54:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-15 14:54:01 +0000
commitef297beeefca9d9d3c52d600289d750a7fb57cf3 (patch)
tree4dccbb8678772eba5c7cfa358bb320f7b569e193 /lib
parentcdb8f496af4294bb8fbccd27077f67bce13dad73 (diff)
downloadruby-ef297beeefca9d9d3c52d600289d750a7fb57cf3.tar.gz
ruby-ef297beeefca9d9d3c52d600289d750a7fb57cf3.tar.xz
ruby-ef297beeefca9d9d3c52d600289d750a7fb57cf3.zip
* lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
no longer has to_str method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/optparse.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb
index 1b083b8e6..63cf1d79f 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