mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
Clarify post policy error message (#20067)
It is not really clear that the listed keys are missing. Clarify the error
This commit is contained in:
@@ -364,7 +364,7 @@ func checkPostPolicy(formValues http.Header, postPolicyForm PostPolicyForm) erro
|
|||||||
for key := range checkHeader {
|
for key := range checkHeader {
|
||||||
logKeys = append(logKeys, key)
|
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
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user