Exit codes

This commit is contained in:
erwanlr
2013-04-14 12:59:52 +02:00
parent 6cd349cb24
commit 927c37e6db
2 changed files with 8 additions and 5 deletions

View File

@@ -29,8 +29,10 @@ begin
plugin.run(options)
end
exit(0)
rescue => e
puts "[ERROR] #{e.message}"
puts 'Trace :'
puts e.backtrace.join("\n")
exit(1)
end