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:
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…
Reference in New Issue
Block a user