Commit 8facee8c authored by ale's avatar ale
Browse files

Make the blacklist validation error slightly clearer

parent 31537566
......@@ -135,7 +135,7 @@ type ValidatorFunc func(context.Context, string) error
func notInSet(set stringSet) ValidatorFunc {
return func(_ context.Context, value string) error {
if set.Contains(value) {
return errors.New("reserved value")
return errors.New("invalid value (blacklisted)")
return nil
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment