Skip to content

Commit

Permalink
show helpful message if binding_of_caller is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Dec 9, 2012
1 parent 88f8ec8 commit 5983c7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/better_errors/templates/main.erb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@
</div>

<div class="variable_info"></div>
<% else %>
<h3>Advanced features unavailable</h3>
<p class="error">
You must add <code>gem "binding_of_caller"</code> to your Gemfile to enable the REPL and local/instance variable inspection.
</p>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit 5983c7d

Please sign in to comment.