Skip to content

Commit

Permalink
switched back to 500.png rack image
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoble authored and rtomayko committed Mar 26, 2009
1 parent 7d06d6d commit f542720
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions lib/sinatra/base.rb
Expand Up @@ -959,12 +959,6 @@ def caller_files
content_type :png
send_file filename
end

get '/__sinatra__/:image.jpg' do
filename = File.dirname(__FILE__) + "/images/#{params[:image]}.jpg"
content_type :jpg
send_file filename
end

error NotFound do
(<<-HTML).gsub(/^ {8}/, '')
Expand Down
Binary file removed lib/sinatra/images/500.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/sinatra/show_exceptions.rb
Expand Up @@ -124,7 +124,7 @@ def initialize(app)
<body>
<div id="wrap">
<div id="header">
<img src="/__sinatra__/500.jpg" alt="application error" />
<img src="/__sinatra__/500.png" alt="application error" />
<div id="summary">
<h1><strong><%=h exception.class %></strong> at <strong><%=h path %>
</strong></h1>
Expand Down

0 comments on commit f542720

Please sign in to comment.