diff --git a/CHANGELOG.md b/CHANGELOG.md index b979e34a5a3..68765cce811 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/server/src-lib/Hasura/Db.hs b/server/src-lib/Hasura/Db.hs index 0cebe460e3d..b4138f8337b 100644 --- a/server/src-lib/Hasura/Db.hs +++ b/server/src-lib/Hasura/Db.hs @@ -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