Better formatting of error messages
This commit is contained in:
parent
21090b9314
commit
a598846bd3
@ -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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user