Change inaccurate error codes to new ones

- Code for column is not found is PGRST204
- Code for timed out when acquiring connection to db is PGRST003
This commit is contained in:
Laurence Isla
2023-02-09 14:57:51 -05:00
committed by GitHub
parent c893ac15dc
commit 60f4446fd8
4 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ spec actualPgVersion = do
{"id": 204, "body": "yyy"},
{"id": 205, "body": "zzz"}]|]
`shouldRespondWith`
[json|{"code":"PGRST118","details":null,"hint":null,"message":"Column 'helicopter' of relation 'articles' does not exist"} |]
[json|{"code":"PGRST204","details":null,"hint":null,"message":"Column 'helicopter' of relation 'articles' does not exist"} |]
{ matchStatus = 400
, matchHeaders = []
}
+1 -1
View File
@@ -313,7 +313,7 @@ spec = do
[("Prefer", "return=representation")]
[json|{"body": "yyy"}|]
`shouldRespondWith`
[json|{"code":"PGRST118","details":null,"hint":null,"message":"Column 'helicopter' of relation 'articles' does not exist"} |]
[json|{"code":"PGRST204","details":null,"hint":null,"message":"Column 'helicopter' of relation 'articles' does not exist"} |]
{ matchStatus = 400
, matchHeaders = []
}