From 0cd9a56675fffd8c8b8804b82593a8b3241fc0ee Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Mon, 24 Jan 2022 19:09:46 -0800 Subject: [PATCH] Add quotes around field name in error message. --- src/Server/Request.elm | 2 +- tests/ServerRequestTest.elm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server/Request.elm b/src/Server/Request.elm index be3e1eb7..5f7f9949 100644 --- a/src/Server/Request.elm +++ b/src/Server/Request.elm @@ -472,7 +472,7 @@ formField_ name = ( Ok justValue, [] ) Nothing -> - ( Err (ValidationError ("Missing form field " ++ name)), [] ) + ( Err (ValidationError ("Missing form field '" ++ name ++ "'")), [] ) ) |> Request diff --git a/tests/ServerRequestTest.elm b/tests/ServerRequestTest.elm index 8e189f17..9001dbae 100644 --- a/tests/ServerRequestTest.elm +++ b/tests/ServerRequestTest.elm @@ -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""" ]