Skip to content

Commit

Permalink
bring back cont name in delete error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jun 15, 2021
1 parent 0e48e7c commit 0bde6cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ func destroyLab(ctx context.Context, c *clab.CLab) (err error) {
log.Debugf("Worker %d terminating...", i)
return
}
//if len(cont.Names) > 0 {
// name = strings.TrimLeft(cont.Names[0], "/")
//}
if len(cont.Names) > 0 {
name = strings.TrimLeft(cont.Names[0], "/")
}
err := c.Runtime.DeleteContainer(ctx, cont)
if err != nil {
log.Errorf("could not remove container: %v", err)
log.Errorf("could not remove container %s: %v", name, err)
}
case <-ctx.Done():
return
Expand Down

0 comments on commit 0bde6cf

Please sign in to comment.