Commit abddccf1 authored by Fabio Pelosin's avatar Fabio Pelosin

Merge branch 'master' of github.com:CocoaPods/CocoaPods

* 'master' of github.com:CocoaPods/CocoaPods:
  Don't print an error report when someone sends an interrupt signal.
  Add correct encoding comment to error_report.rb.
parents 0fa82acd 9864eedb
...@@ -2,7 +2,7 @@ PODS: ...@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0): - AFNetworking (0.7.0):
- JSONKit - JSONKit
- FormatterKit (0.7.0) - FormatterKit (0.7.0)
- JSONKit (1.4) - JSONKit (1.5pre)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 0.7.0) - AFNetworking (~> 0.7.0)
......
...@@ -2,7 +2,7 @@ PODS: ...@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0): - AFNetworking (0.7.0):
- JSONKit - JSONKit
- FormatterKit (0.7.0) - FormatterKit (0.7.0)
- JSONKit (1.4) - JSONKit (1.5pre)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 0.7.0) - AFNetworking (~> 0.7.0)
......
...@@ -54,9 +54,13 @@ module Pod ...@@ -54,9 +54,13 @@ module Pod
end end
def self.run(*argv) def self.run(*argv)
begin
Setup.new(ARGV.new()).run_if_needed Setup.new(ARGV.new()).run_if_needed
parse(*argv).run parse(*argv).run
rescue Interrupt
puts "[!] Cancelled".red
Config.instance.verbose? ? raise : exit(1)
rescue Exception => e rescue Exception => e
if e.is_a?(Informative) if e.is_a?(Informative)
puts e.message puts e.message
...@@ -66,7 +70,6 @@ module Pod ...@@ -66,7 +70,6 @@ module Pod
end end
exit 1 exit 1
end end
end
def self.parse(*argv) def self.parse(*argv)
argv = ARGV.new(argv) argv = ARGV.new(argv)
......
# encoding: UTF-8
require 'rbconfig' require 'rbconfig'
require 'cgi' require 'cgi'
require 'rubygems' require 'rubygems'
......
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