Permalink
Browse files

Merge pull request #17638 from gsamokovarov/focus-application-trace

Don't show full trace on routing errors
  • Loading branch information...
guilleiguaran committed Nov 16, 2014
2 parents 823336c + 2301d8c commit 28dfc6a10b73f5dee2f6e13d5644b8aa7c5a938a
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -38,7 +38,7 @@ def render_exception(env, exception)
traces = wrapper.traces
trace_to_show = 'Application Trace'
if traces[trace_to_show].empty?
if traces[trace_to_show].empty? && wrapper.rescue_template != 'routing_error'
trace_to_show = 'Full Trace'
end

0 comments on commit 28dfc6a

Please sign in to comment.