Permalink
Browse files

Better errors

  • Loading branch information...
1 parent 713b66a commit 5f3eac03441b52d0faef54d1bf23897e6b4cb789 @bmizerany bmizerany committed Mar 15, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/sinatra.rb
View
@@ -791,8 +791,11 @@ def setup!
</style>
<div id="content">
<img src="/sinatra_custom_images/500.png" />
+ <div class="info">
+ Params: <pre>#{params.inspect}
+ </div>
<div id="stacktrace">
- <h1>#{Rack::Utils.escape_html(@error.message)}</h1>
+ <h1>#{Rack::Utils.escape_html(@error.class.name + ' - ' + @error.message)}</h1>
<pre><code>#{Rack::Utils.escape_html(@error.backtrace.join("\n"))}</code></pre>
</div>
</body>

0 comments on commit 5f3eac0

Please sign in to comment.