1
0
mirror of https://github.com/containrrr/watchtower.git synced 2024-12-12 09:04:17 +02:00

Improve error reporting

This commit is contained in:
Ross Cadogan 2016-10-13 18:15:18 +01:00
parent c4efc83875
commit 02bca8d6a4

View File

@ -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
}
}