fix: clarify PGRST204 error message

This commit is contained in:
steve-chavez
2024-04-01 19:03:14 -05:00
committed by Steve Chavez
parent 6de3ba543d
commit 2543b8d724
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ instance JSON.ToJSON ApiRequestError where
(Just "Try renaming the parameters or the function itself in the database so function overloading can be resolved")
toJSON (ColumnNotFound relName colName) = toJsonPgrstError
SchemaCacheErrorCode04 ("Column '" <> colName <> "' of relation '" <> relName <> "' does not exist") Nothing Nothing
SchemaCacheErrorCode04 ("Could not find the '" <> colName <> "' column of '" <> relName <> "' in the schema cache") Nothing Nothing
-- |
-- If no relationship is found then: