Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 0b28b96

Browse files
missed handling err which led to a panic
1 parent 585958e commit 0b28b96

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ func lookupNamedContainer(c *Context) error {
155155
if _, ok := err.(*dockerClient.NoSuchContainer); ok {
156156
return nil
157157
}
158+
if err != nil {
159+
return err
160+
}
158161

159162
if container.State.Running {
160163
c.Id = container.ID

0 commit comments

Comments
 (0)