Commit 9864eedb authored by Eloy Duran's avatar Eloy Duran

Don't print an error report when someone sends an interrupt signal.

parent 8b40ff49
......@@ -54,18 +54,21 @@ module Pod
end
def self.run(*argv)
begin
Setup.new(ARGV.new()).run_if_needed
parse(*argv).run
rescue Exception => e
if e.is_a?(Informative)
puts e.message
puts *e.backtrace if Config.instance.verbose?
else
puts ErrorReport.report(e)
end
exit 1
Setup.new(ARGV.new()).run_if_needed
parse(*argv).run
rescue Interrupt
puts "[!] Cancelled".red
Config.instance.verbose? ? raise : exit(1)
rescue Exception => e
if e.is_a?(Informative)
puts e.message
puts *e.backtrace if Config.instance.verbose?
else
puts ErrorReport.report(e)
end
exit 1
end
def self.parse(*argv)
......
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