Skip to content

Commit

Permalink
fix: add log with not found
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Antoshin <[email protected]>
  • Loading branch information
danilrwx committed Dec 9, 2024
1 parent 134157b commit 8c7a7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/virtualization/cmd/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8c7a7c7

Please sign in to comment.