diff --git a/lib/better_errors/templates/variable_info.erb b/lib/better_errors/templates/variable_info.erb index bde5daab..8d6bd166 100644 --- a/lib/better_errors/templates/variable_info.erb +++ b/lib/better_errors/templates/variable_info.erb @@ -45,26 +45,28 @@ -
-

Local Variables

-
- - <% @frame.local_variables.each do |name, value| %> - - <% end %> -
<%= name %>
<%== inspect_value value %>
+<% if BetterErrors.binding_of_caller_available? && @frame.frame_binding %> +
+

Local Variables

+
+ + <% @frame.local_variables.each do |name, value| %> + + <% end %> +
<%= name %>
<%== inspect_value value %>
+
-
-
-

Instance Variables

-
- - <% @frame.instance_variables.each do |name, value| %> - - <% end %> -
<%= name %>
<%== inspect_value value %>
+
+

Instance Variables

+
+ + <% @frame.instance_variables.each do |name, value| %> + + <% end %> +
<%= name %>
<%== inspect_value value %>
+
-
- + +<% end %>