Commit 0c80af37 authored by Samuel E. Giddins's avatar Samuel E. Giddins

Don't report errors for SystemExit. Closes #2442.

parent 27095014
...@@ -52,6 +52,8 @@ module Pod ...@@ -52,6 +52,8 @@ module Pod
if exception.is_a?(Interrupt) if exception.is_a?(Interrupt)
puts '[!] Cancelled'.red puts '[!] Cancelled'.red
Config.instance.verbose? ? raise : exit(1) Config.instance.verbose? ? raise : exit(1)
elsif exception.is_a?(SystemExit)
raise exception
else else
if ENV['COCOA_PODS_ENV'] != 'development' if ENV['COCOA_PODS_ENV'] != 'development'
puts UI::ErrorReport.report(exception) puts UI::ErrorReport.report(exception)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment