Skip to content

Commit

Permalink
[Command] Don't present the error report in development.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 7, 2012
1 parent 9b72d27 commit 192d815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cocoapods/command.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def self.run(*argv)
Config.instance.verbose? ? raise : exit(1) Config.instance.verbose? ? raise : exit(1)


rescue Exception => e 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.message
puts *e.backtrace if Config.instance.verbose? puts *e.backtrace if Config.instance.verbose? || ENV['COCOA_PODS_ENV'] == 'development'
else else
puts ErrorReport.report(e) puts ErrorReport.report(e)
end end
Expand Down

0 comments on commit 192d815

Please sign in to comment.