From b3bac73c0f9847ad83a05b49fba4d916ce87fcc5 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Wed, 10 Jul 2024 07:18:44 -0700 Subject: [PATCH] Clarify post policy error message (#20067) It is not really clear that the listed keys are missing. Clarify the error --- cmd/postpolicyform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/postpolicyform.go b/cmd/postpolicyform.go index 16addbcc5..d4d1c214a 100644 --- a/cmd/postpolicyform.go +++ b/cmd/postpolicyform.go @@ -364,7 +364,7 @@ func checkPostPolicy(formValues http.Header, postPolicyForm PostPolicyForm) erro for key := range checkHeader { logKeys = append(logKeys, key) } - return fmt.Errorf("Each form field that you specify in a form (except %s) must appear in the list of conditions.", strings.Join(logKeys, ", ")) + return fmt.Errorf("Each form field that you specify in a form must appear in the list of policy conditions. %q not specified in the policy.", strings.Join(logKeys, ", ")) } return nil