Ticket #963: slightly_nicer_rescue_templates.diff
| File slightly_nicer_rescue_templates.diff, 2.6 kB (added by JohanSörensen, 4 years ago) |
|---|
-
vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml
old new 1 1 <h1>Routing Error</h1> 2 <p>< %=h @exception.message %></p>2 <p><pre><%=h @exception.message %></pre></p> 3 3 <% unless @exception.failures.empty? %><p> 4 4 <h2>Failure reasons:</h2> 5 <ol> 5 6 <% @exception.failures.each do |route, reason| %> 6 < %=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %><br />7 <li><code><%=h route.inspect.gsub('\\', '') %></code> failed because <%=h reason.downcase %></li> 7 8 <% end %> 9 </ol> 8 10 </p><% end %> -
vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.rhtml
old new 4 4 </h1> 5 5 6 6 <p> 7 Showing <i><%=h @exception.file_name %></i> where line <b>#<%=h @exception.line_number %></b> raised 8 < u><%=h @exception.message %></u>7 Showing <i><%=h @exception.file_name %></i> where line <b>#<%=h @exception.line_number %></b> raised: 8 <pre><code><%=h @exception.message %></code></pre> 9 9 </p> 10 10 11 <pre><code><%=h @exception.source_extract %></code></pre> 11 <p>Extracted source (around line <b>#<%=h @exception.line_number %></b>): 12 <pre><code><%=h @exception.source_extract %></code></pre></p> 12 13 13 14 <p><%=h @exception.sub_template_message %></p> 14 15 -
vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml
old new 8 8 <%=h @exception.class.to_s %> in 9 9 <%=h (@request.parameters["controller"] || "<controller not set>").capitalize %>#<%=h @request.parameters["action"] || "<action not set>" %> 10 10 </h1> 11 <p ><%=h Object.const_defined?(:RAILS_ROOT) ? @exception.message.gsub(RAILS_ROOT, "") : @exception.message %></p>11 <pre><%=h Object.const_defined?(:RAILS_ROOT) ? @exception.message.gsub(RAILS_ROOT, "") : @exception.message %></pre> 12 12 13 13 <% unless app_trace.empty? %><pre><code><%=h app_trace.join("\n") %></code></pre><% end %> 14 14