diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-16 13:28:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-16 13:28:12 -0700 |
commit | e38c93a120de84ee5c2f22e9da942233a7edd22e (patch) | |
tree | 790b649c7f5cc0848475744db098744ba483b489 | |
parent | 7816b9852b813545a239be53afdd2dc379229614 (diff) | |
parent | 886f439cb58e96bc0249a7146a0a490849608091 (diff) | |
download | rails-e38c93a120de84ee5c2f22e9da942233a7edd22e.tar.gz rails-e38c93a120de84ee5c2f22e9da942233a7edd22e.tar.bz2 rails-e38c93a120de84ee5c2f22e9da942233a7edd22e.zip |
Merge pull request #10594 from shime/rack-debugger
exit with non-zero to signal failure
-rw-r--r-- | railties/lib/rails/commands/console.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails/rack/debugger.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 96229bb4f6..f6bdf129d6 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -94,8 +94,8 @@ module Rails 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 diff --git a/railties/lib/rails/rack/debugger.rb b/railties/lib/rails/rack/debugger.rb index 902361ce77..f7b77bcb3b 100644 --- a/railties/lib/rails/rack/debugger.rb +++ b/railties/lib/rails/rack/debugger.rb @@ -12,8 +12,8 @@ module Rails ::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) |