fix: return error msg if acl policy not found

pull/16485/head
cskh 2 years ago
parent 66de1def3b
commit 77011a075e

@ -92,6 +92,11 @@ func (c *cmd) Run(args []string) int {
return 1
}
if pol == nil {
c.UI.Error(fmt.Sprintf("Error not found policy %s", c.policyName))
return 1
}
formatter, err := policy.NewFormatter(c.format, c.showMeta)
if err != nil {
c.UI.Error(err.Error())

Loading…
Cancel
Save