Improve error reporting

pull/26/head
Ross Cadogan 8 years ago
parent c4efc83875
commit 02bca8d6a4

@ -157,10 +157,12 @@ func (client dockerClient) IsContainerStale(c Container) (bool, error) {
Email: email,
}
if err := client.api.PullImage(imageName, &auth); err != nil {
log.Debugf("Error pulling image %s with authentication, %s", imageName, err)
return false, err
}
} else {
if err := client.api.PullImage(imageName, nil); err != nil {
log.Debugf("Error pulling image %s, %s", imageName, err)
return false, err
}
}

Loading…
Cancel
Save