switched back to 500.png rack image
This commit is contained in:
parent
7d06d6dfa9
commit
f54272065d
|
@ -960,12 +960,6 @@ module Sinatra
|
|||
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}/, '')
|
||||
<!DOCTYPE html>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB |
|
@ -124,7 +124,7 @@ TEMPLATE = <<HTML
|
|||
<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>
|
||||
|
|
Loading…
Reference in New Issue