Fix description error message

This commit is contained in:
Todd Knight authored and GitHub committed 2020-10-06 09:41:55 -07:00
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
}