Skip to content

Commit

Permalink
improve empty list of resource caution error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Dec 19, 2019
1 parent 3b529c7 commit 2fca6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kapp/cmd/app/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (o *DeployOptions) existingResources(newResources []ctlres.Resource,
}
} else {
if len(newResources) == 0 && !o.DeployFlags.AllowEmpty {
return nil, fmt.Errorf("Trying to apply empty set of resources which will delete cluster resources. " +
return nil, fmt.Errorf("Trying to apply empty set of resources will result in deletion of resources on cluster. " +
"Refusing to continue unless --dangerous-allow-empty-list-of-resources is specified.")
}
}
Expand Down

0 comments on commit 2fca6de

Please sign in to comment.