Skip to content
Snippets Groups Projects
Commit 8facee8c authored by ale's avatar ale
Browse files

Make the blacklist validation error slightly clearer

parent 31537566
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ type ValidatorFunc func(context.Context, string) error ...@@ -135,7 +135,7 @@ type ValidatorFunc func(context.Context, string) error
func notInSet(set stringSet) ValidatorFunc { func notInSet(set stringSet) ValidatorFunc {
return func(_ context.Context, value string) error { return func(_ context.Context, value string) error {
if set.Contains(value) { if set.Contains(value) {
return errors.New("reserved value") return errors.New("invalid value (blacklisted)")
} }
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment