Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Better debug handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Aug 30, 2011
1 parent 37ab23f commit 4bd3396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bpm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bd3396

Please sign in to comment.