Skip to content

Commit

Permalink
Doc: Add hint to warning for users of namespace if selectors empty (#148
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rspurgeon committed Jan 24, 2024
1 parent 2bb192b commit 9ab57ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func Apply(deckfile *yaml.Node, selectors yamlbasics.SelectorSet, namespace stri
logbasics.Info("no routes matched the selectors, nothing to do")
return nil
}
return errors.New("no routes matched the selectors")
return errors.New("no routes matched the selectors. Check command help to suppress this error")
}

routesNoStripping := allRoutes.Subtract(targetRoutes) // everything not matched by the selectors
Expand Down

0 comments on commit 9ab57ae

Please sign in to comment.