Permalink
Browse files

Merge pull request #10594 from shime/rack-debugger

exit with non-zero to signal failure
  • Loading branch information...
2 parents 7816b98 + 886f439 commit e38c93a120de84ee5c2f22e9da942233a7edd22e @tenderlove tenderlove committed May 16, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 railties/lib/rails/commands/console.rb
  2. +2 −2 railties/lib/rails/rack/debugger.rb
@@ -94,8 +94,8 @@ def require_debugger
require 'debugger'
puts "=> Debugger enabled"
rescue LoadError
- puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
- exit
+ puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle it and try again."
+ exit(1)
end
end
end
@@ -12,8 +12,8 @@ def initialize(app)
::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings)
puts "=> Debugger enabled"
rescue LoadError
- puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
- exit
+ puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle it and try again."
+ exit(1)
end
def call(env)

0 comments on commit e38c93a

Please sign in to comment.