Skip to content

Commit

Permalink
minor cleanup to default error response HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Sep 7, 2008
1 parent 9f3dab7 commit 797f2f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,7 @@ def load_development_configuration!

not_found do
(<<-HTML).gsub(/^ {8}/, '')
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
Expand All @@ -1310,7 +1311,7 @@ def load_development_configuration!
</head>
<body>
<h2>Sinatra doesn't know this diddy.</h2>
<img src='/sinatra_custom_images/404.png'></img>
<img src='/sinatra_custom_images/404.png'>
<div id="content">
Try this:
<pre>#{request.request_method.downcase} "#{request.path_info}" do\n .. do something ..\nend<pre>
Expand All @@ -1323,6 +1324,7 @@ def load_development_configuration!
error do
@error = request.env['sinatra.error']
(<<-HTML).gsub(/^ {8}/, '')
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
Expand All @@ -1336,7 +1338,7 @@ def load_development_configuration!
</head>
<body>
<div id="content">
<img src="/sinatra_custom_images/500.png" />
<img src="/sinatra_custom_images/500.png">
<div class="info">
Params: <pre>#{params.inspect}</pre>
</div>
Expand Down

0 comments on commit 797f2f0

Please sign in to comment.