From a71f36a118bc97fb6f776a7df06d38a2fbe9da7c Mon Sep 17 00:00:00 2001 From: Daniil Antoshin Date: Mon, 9 Dec 2024 16:07:37 +0200 Subject: [PATCH] fix: add log with not found Signed-off-by: Daniil Antoshin --- internal/virtualization/cmd/console/console.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/virtualization/cmd/console/console.go b/internal/virtualization/cmd/console/console.go index befb07e..8a41491 100644 --- a/internal/virtualization/cmd/console/console.go +++ b/internal/virtualization/cmd/console/console.go @@ -121,6 +121,8 @@ func (c *Console) Run(args []string) error { err := connect(name, namespace, virtCli, stdinCh) if err != nil { if errors.Is(err, util.ErrorInterrupt) || strings.Contains(err.Error(), "not found") { + fmt.Fprintf(os.Stderr, "%s\n", err) + return nil }