aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2012-04-29 18:26:37 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2012-12-31 13:48:00 -0500
commitfe12e4650802d8f28136660fc9ce62c6a28f19e1 (patch)
tree686da31d67a7189e017d87175ad07e5c2fe6a29b /actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
parent90c8972516d683f73dd2354f4b44e42d73c71a29 (diff)
downloadrails-fe12e4650802d8f28136660fc9ce62c6a28f19e1.tar.gz
rails-fe12e4650802d8f28136660fc9ce62c6a28f19e1.tar.bz2
rails-fe12e4650802d8f28136660fc9ce62c6a28f19e1.zip
Add source extract to detailed exception page
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/debug_exceptions.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/debug_exceptions.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
index 6705e531cb..ac8f6af7fe 100644
--- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -42,7 +42,10 @@ module ActionDispatch
:application_trace => wrapper.application_trace,
:framework_trace => wrapper.framework_trace,
:full_trace => wrapper.full_trace,
- :routes => formatted_routes(exception)
+ :routes => formatted_routes(exception),
+ :source_extract => wrapper.source_extract,
+ :line_number => wrapper.line_number,
+ :file => wrapper.file
)
file = "rescues/#{wrapper.rescue_template}"