diff --git a/lib/better_errors/templates/main.erb b/lib/better_errors/templates/main.erb index e1a7f9ed..78b6c3fa 100644 --- a/lib/better_errors/templates/main.erb +++ b/lib/better_errors/templates/main.erb @@ -170,6 +170,12 @@ color: white; } + header.exception small a { + font-weight: 100; + font-size: 10pt; + color: grey; + } + header.exception:hover { height: auto; z-index: 2; @@ -733,6 +739,9 @@

<%= exception.type %> at <%= request_path %>

<%= exception.message %>

+ + Search on Stack Overflow +
diff --git a/spec/better_errors/error_page_spec.rb b/spec/better_errors/error_page_spec.rb index 0fc99ccb..8e137fce 100644 --- a/spec/better_errors/error_page_spec.rb +++ b/spec/better_errors/error_page_spec.rb @@ -30,6 +30,10 @@ module BetterErrors response.should include("ZeroDivisionError") end + it "includes a link to search" do + response.should include("https://stackoverflow.com/search?q=%5Bruby-on-rails%5D+ZeroDivisionError") + end + context "variable inspection" do let(:exception) { empty_binding.eval("raise") rescue $! }