Better formatting of error messages
This commit is contained in:
parent
21090b9314
commit
a598846bd3
@ -540,14 +540,14 @@ defaultErrorHandler (InternalError e) =
|
||||
[hamlet|
|
||||
$newline never
|
||||
<h1>Internal Server Error
|
||||
<p>#{e}
|
||||
<pre>#{e}
|
||||
|]
|
||||
defaultErrorHandler (BadMethod m) =
|
||||
applyLayout' "Bad Method"
|
||||
[hamlet|
|
||||
$newline never
|
||||
<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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user