Skip to content
Browse files

exit with non-zero to signal failure

  • Loading branch information...
1 parent b44f086 commit 886f439cb58e96bc0249a7146a0a490849608091 @shime shime committed May 13, 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
View
4 railties/lib/rails/commands/console.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
View
4 railties/lib/rails/rack/debugger.rb
@@ -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 886f439

Please sign in to comment.
Something went wrong with that request. Please try again.