Skip to content
Snippets Groups Projects
Commit 0b28b96c authored by Darren Shepherd's avatar Darren Shepherd
Browse files

missed handling err which led to a panic

parent 585958e2
No related branches found
No related tags found
No related merge requests found
...@@ -155,6 +155,9 @@ func lookupNamedContainer(c *Context) error { ...@@ -155,6 +155,9 @@ func lookupNamedContainer(c *Context) error {
if _, ok := err.(*dockerClient.NoSuchContainer); ok { if _, ok := err.(*dockerClient.NoSuchContainer); ok {
return nil return nil
} }
if err != nil {
return err
}
if container.State.Running { if container.State.Running {
c.Id = container.ID c.Id = container.ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment