Skip to content

Commit

Permalink
raise warning if ns is missing
Browse files Browse the repository at this point in the history
Signed-off-by: jasonz <ksdpmx@gmail.com>
  • Loading branch information
ksdpmx committed Apr 25, 2024
1 parent 0426e3c commit dd7fd45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/ctr/commands/namespaces/namespaces.go
Expand Up @@ -174,10 +174,13 @@ var removeCommand = &cli.Command{
log.G(ctx).WithError(err).Errorf("unable to delete %v", target)
continue
}

if errdefs.IsNotFound(err) {
log.G(ctx).WithError(err).Warnf("namespace %v not found", target)
continue
}
}

fmt.Println(target)
log.G(ctx).Infof("namespace %v deleted", target)
}
return exitErr
},
Expand Down

0 comments on commit dd7fd45

Please sign in to comment.