aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorScott Barron <scott@elitists.net>2006-11-02 04:59:13 +0000
committerScott Barron <scott@elitists.net>2006-11-02 04:59:13 +0000
commitfa58808d08236c2453f31256d101c964c5b38a6c (patch)
treee95c8e7ab006eb26b93adcf20667b5f263cbd47c /railties
parente7eae2bd9bc81e8c81c2918155a24c3729315277 (diff)
downloadrails-fa58808d08236c2453f31256d101c964c5b38a6c.tar.gz
rails-fa58808d08236c2453f31256d101c964c5b38a6c.tar.bz2
rails-fa58808d08236c2453f31256d101c964c5b38a6c.zip
Don't do call_stack warning all the time, only if a breakpoint is used.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/breakpoint.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/breakpoint.rb b/railties/lib/breakpoint.rb
index fc586bcadb..1b021e11e5 100644
--- a/railties/lib/breakpoint.rb
+++ b/railties/lib/breakpoint.rb
@@ -21,11 +21,11 @@ if RUBY_VERSION == '1.8.5'
require 'rubygems'
require 'breakpoint185'
rescue LoadError
- puts 'WARNING: breakpoints will not work with Ruby 1.8.5 without the call_stack gem.'
- puts ' gem install call_stack or see http://eigenclass.org/hiki.rb?call_stack'
def Binding.of_caller(&block)
- raise 'Breakpoint requires the call_stack gem with Ruby 1.8.5.'
- return
+ raise x=<<EOS
+Breakpoints do not work in Ruby 1.8.5 without call_stack.
+gem install call_stack or see http://eigenclass.org/hiki.rb?call_stack
+EOS
end
end
else