Permalink
Browse files

[Command] Don't present the error report in development.

  • Loading branch information...
1 parent 9b72d27 commit 192d815ff348a4dffa1bada8a019ed7e0618abe4 @fabiopelosin fabiopelosin committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cocoapods/command.rb
View
@@ -76,9 +76,9 @@ def self.run(*argv)
Config.instance.verbose? ? raise : exit(1)
rescue Exception => e
- if e.is_a?(PlainInformative) # also catches Informative
+ if e.is_a?(PlainInformative) || ENV['COCOA_PODS_ENV'] == 'development' # also catches Informative
puts e.message
- puts *e.backtrace if Config.instance.verbose?
+ puts *e.backtrace if Config.instance.verbose? || ENV['COCOA_PODS_ENV'] == 'development'
else
puts ErrorReport.report(e)
end

0 comments on commit 192d815

Please sign in to comment.