rename reportPgErrors to clientErrors
This commit is contained in:
+2
-2
@@ -68,8 +68,8 @@ instance ToJSON SqlError where
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
reportPgErrors :: Application -> Application
|
clientErrors :: Application -> Application
|
||||||
reportPgErrors app req respond =
|
clientErrors app req respond =
|
||||||
catchJust isPgException (app req respond) (
|
catchJust isPgException (app req respond) (
|
||||||
respond . responseLBS status400 [(hContentType, "application/json")]
|
respond . responseLBS status400 [(hContentType, "application/json")]
|
||||||
. encode
|
. encode
|
||||||
|
|||||||
Reference in New Issue
Block a user