mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-10 10:29:12 +03:00
server: Don’t expose DB implementation in error message (#4294)
This commit is contained in:
parent
b948e26751
commit
b02cd336d0
@ -19,6 +19,7 @@ The order and collapsed state of columns is now persisted across page navigation
|
||||
- console: decouple data rows and count fetch in data browser to account for really large tables (close #3793) (#4269)
|
||||
- docs: add One-Click Render deployment guide (close #3683) (#4209)
|
||||
- server: reserved keywords in column references break parser (fix #3597) #3927
|
||||
- server: fix postgres specific error message that exposed database type on invalid query parameters (#4294)
|
||||
|
||||
## `v1.2.0-beta.3`
|
||||
|
||||
|
@ -111,7 +111,7 @@ defaultTxErrorHandler = mkTxErrorHandler (const False)
|
||||
mkTxErrorHandler :: (PGErrorType -> Bool) -> Q.PGTxErr -> QErr
|
||||
mkTxErrorHandler isExpectedError txe = fromMaybe unexpectedError expectedError
|
||||
where
|
||||
unexpectedError = (internalError "postgres query error") { qeInternal = Just $ J.toJSON txe }
|
||||
unexpectedError = (internalError "database query error") { qeInternal = Just $ J.toJSON txe }
|
||||
expectedError = uncurry err400 <$> do
|
||||
errorDetail <- Q.getPGStmtErr txe
|
||||
message <- Q.edMessage errorDetail
|
||||
|
Loading…
Reference in New Issue
Block a user