Permalink
Browse files

add to_s to exceptions as option parser no longer does implicit conve…

…rsion, makes spec pass
  • Loading branch information...
Justin Lynn Gabriel Gilder
Justin Lynn authored and Gabriel Gilder committed Jul 25, 2011
1 parent de5c7a1 commit a1384e08032db6849402c4f62cee11ce1ebe3333
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/commander/runner.rb
View
@@ -66,7 +66,7 @@ def run!
OptionParser::InvalidOption,
OptionParser::InvalidArgument,
OptionParser::MissingArgument => e
- abort e
+ abort e.to_s
rescue => e
abort "error: #{e}. Use --trace to view backtrace"
end

0 comments on commit a1384e0

Please sign in to comment.