Add quotes around field name in error message.

This commit is contained in:
Dillon Kearns 2022-01-24 19:09:46 -08:00
parent f21b8b61b1
commit 0cd9a56675
2 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@ formField_ name =
( Ok justValue, [] )
Nothing ->
( Err (ValidationError ("Missing form field " ++ name)), [] )
( Err (ValidationError ("Missing form field '" ++ name ++ "'")), [] )
)
|> Request

View File

@ -120,7 +120,7 @@ Expecting an OBJECT with a field named `first`
(3) Missing query param "first"
(4) Missing form field first
(4) Missing form field 'first'
Expected content-type to be multipart/form-data but it was application/x-www-form-urlencoded
Expected HTTP method POST but was GET"""
]