From 0ccc6954b1c21f06eb75db9bb58c437a4a3c2a5c Mon Sep 17 00:00:00 2001 From: Eldad Assis Date: Tue, 7 May 2019 10:41:28 +0300 Subject: [PATCH] Add missing backtick to wrap namespace name --- .gitignore | 1 + internal/config/ns.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 83a66a6a..61c9bfdd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode +.idea k9s.log .envrc cov.out diff --git a/internal/config/ns.go b/internal/config/ns.go index d1ff92be..46f7fd9d 100644 --- a/internal/config/ns.go +++ b/internal/config/ns.go @@ -35,8 +35,8 @@ func (n *Namespace) Validate(c Connection, ks KubeSettings) { } nn := ks.NamespaceNames(nns) if !n.isAllNamespace() && !InList(nn, n.Active) { - log.Error().Msgf("[Config] Validation error active namespace `%s does not exists", n.Active) - panic(fmt.Errorf("Invalid namespace. The provided namespace `%s does not exists", n.Active)) + log.Error().Msgf("[Config] Validation error active namespace `%s` does not exists", n.Active) + panic(fmt.Errorf("Invalid namespace. The provided namespace `%s` does not exists", n.Active)) } for _, ns := range n.Favorites {