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| %>
- <%= name %> | <%== inspect_value value %> |
- <% end %>
-
+<% if BetterErrors.binding_of_caller_available? && @frame.frame_binding %>
+
+
Local Variables
+
+
+ <% @frame.local_variables.each do |name, value| %>
+ <%= name %> | <%== inspect_value value %> |
+ <% end %>
+
+
-
-
-
Instance Variables
-
-
- <% @frame.instance_variables.each do |name, value| %>
- <%= name %> | <%== inspect_value value %> |
- <% end %>
-
+
+
Instance Variables
+
+
+ <% @frame.instance_variables.each do |name, value| %>
+ <%= name %> | <%== inspect_value value %> |
+ <% end %>
+
+
-
-
+
+<% end %>