Skip to content
Browse files

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

…rsion, makes spec pass
  • Loading branch information...
1 parent de5c7a1 commit a1384e08032db6849402c4f62cee11ce1ebe3333 Justin Lynn committed with Gabriel Gilder
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/commander/runner.rb
View
2 lib/commander/runner.rb
@@ -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.
Something went wrong with that request. Please try again.