Better formatting of error messages

This commit is contained in:
Michael Snoyman 2012-11-12 11:24:32 +02:00
parent 21090b9314
commit a598846bd3

View File

@ -540,14 +540,14 @@ defaultErrorHandler (InternalError e) =
[hamlet| [hamlet|
$newline never $newline never
<h1>Internal Server Error <h1>Internal Server Error
<p>#{e} <pre>#{e}
|] |]
defaultErrorHandler (BadMethod m) = defaultErrorHandler (BadMethod m) =
applyLayout' "Bad Method" applyLayout' "Bad Method"
[hamlet| [hamlet|
$newline never $newline never
<h1>Method Not Supported <h1>Method Not Supported
<p>Method "#{S8.unpack m}" not supported <p>Method <code>#{S8.unpack m}</code> not supported
|] |]
-- | Return the same URL if the user is authorized to see it. -- | Return the same URL if the user is authorized to see it.