Skip to content

Commit 70f6c49

Browse files
authored
Get rid of Unicode in err404 example (#1478)
ServerError field errBody uses ByteString, whose IsString instance kills Unicode, thus turning example into garbage. Changed it to simple ASCII string, since Unicode art did not exactly correspond to 404 error anyway. Fixes #1371
1 parent 70b3721 commit 70f6c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servant-server/src/Servant/Server/Internal/ServerError.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ err403 = ServerError { errHTTPCode = 403
187187
-- Example:
188188
--
189189
-- > failingHandler :: Handler ()
190-
-- > failingHandler = throwError $ err404 { errBody = "(╯°□°)╯︵ ┻━┻)." }
190+
-- > failingHandler = throwError $ err404 { errBody = "Are you lost?" }
191191
--
192192
err404 :: ServerError
193193
err404 = ServerError { errHTTPCode = 404

0 commit comments

Comments
 (0)