From 9ab57ae0a41cfacda1756ee758f05db7e3747b3a Mon Sep 17 00:00:00 2001 From: Rick Spurgeon Date: Wed, 24 Jan 2024 13:06:23 -0600 Subject: [PATCH] Doc: Add hint to warning for users of namespace if selectors empty (#148) --- namespace/namespace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namespace/namespace.go b/namespace/namespace.go index be46710..ec537e7 100644 --- a/namespace/namespace.go +++ b/namespace/namespace.go @@ -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