summaryrefslogtreecommitdiff
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
commitb2afa63f41d17d56f7c94e297779228a32f5e4b5 (patch)
tree4dccbb8678772eba5c7cfa358bb320f7b569e193 /lib
parent17676bfc5ea18d72ad75ee243afa77b32ad04d70 (diff)
* lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
no longer has to_str method. git-svn-id: svn+ssh://ci.ruby-lang.org/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 1b083b8e6e..63cf1d79f0 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