Fix description error message
This commit is contained in:
1 parent
a8d75db00a
commit
54332c5da9
1 file changed
+1
-1
@@ -83,7 +83,7 @@ func ValidateUpdateRequest(prefix string, r UpdateRequest, i ApiResource, fn Cus
|
||||
if i.GetDescription() != nil {
|
||||
trimmed := strings.TrimSpace(i.GetDescription().GetValue())
|
||||
if trimmed == "" {
|
||||
badFields["name"] = "Cannot set empty string as description"
|
||||
badFields["description"] = "Cannot set empty string as description"
|
||||
} else {
|
||||
i.GetDescription().Value = trimmed
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user