Add 'PGRST' error code to differentiate from PostgreSQL errors

This commit is contained in:
Laurence Isla
2022-03-04 15:57:38 -05:00
committed by GitHub
parent 99d0b805df
commit d6834e8bf8
17 changed files with 399 additions and 156 deletions
+5 -1
View File
@@ -20,7 +20,11 @@ spec = describe "server started without JWT secret" $ do
[auth]
""
`shouldRespondWith`
[json|{"message":"Server lacks JWT secret"}|]
[json|
{"hint": null,
"details": null,
"code": "PGRST300",
"message": "Server lacks JWT secret"}|]
{ matchStatus = 500 }
it "behaves normally when user does not attempt auth" $