Skip to content

Commit

Permalink
Print out stack trace when interrupted (only Ruby 1.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Mar 5, 2012
1 parent 09904b6 commit ac0df98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/brakeman
Expand Up @@ -8,6 +8,9 @@ require 'brakeman/version'

trap("INT") do
$stderr.puts "\nInterrupted - exiting."
if RUBY_VERSION.include? "1.9"
$stderr.puts Thread.current.backtrace
end
exit!
end

Expand Down

0 comments on commit ac0df98

Please sign in to comment.