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