aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml')
-rw-r--r--actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml b/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml
index c9ea00ef8f..9fb2de5b10 100644
--- a/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml
+++ b/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml
@@ -6,7 +6,7 @@
<h1>
<%=h @exception.class.to_s %> in
- <%=h @request.parameters["controller"].capitalize %>#<%=h @request.parameters["action"] %>
+ <%=h (@request.parameters["controller"] || "<controller not set>").capitalize %>#<%=h @request.parameters["action"] || "<action not set>" %>
</h1>
<p><%=h Object.const_defined?(:RAILS_ROOT) ? @exception.message.gsub(RAILS_ROOT, "") : @exception.message %></p>