Permalink
Browse files

Better debug handling

  • Loading branch information...
1 parent 37ab23f commit 4bd3396b6169de37e09146ed15f1296b7ab88445 @wagenet wagenet committed Aug 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/bpm
View
@@ -7,12 +7,12 @@ require 'bpm'
begin
BPM::CLI::Base.start
rescue BPM::Error => e
+ raise e if ENV['DEBUG']
warn e.message
- puts e.backtrace.join("\n") if ENV['DEBUG']
exit false
rescue Interrupt => e
+ raise e if ENV['DEBUG']
puts "\nQuitting..."
- puts e.backtrace.join("\n") if ENV['DEBUG']
exit false
rescue SystemExit => e
exit e.status

0 comments on commit 4bd3396

Please sign in to comment.