mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Improve error reporting
This commit is contained in:
parent
c4efc83875
commit
02bca8d6a4
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue