mirror of
https://github.com/containrrr/watchtower.git
synced 2024-12-15 09:14:13 +02:00
Improve error handling
This commit is contained in:
parent
875efba1d5
commit
c4efc83875
@ -45,7 +45,9 @@ func Update(client container.Client, names []string, cleanup bool) error {
|
||||
for i, container := range containers {
|
||||
stale, err := client.IsContainerStale(container)
|
||||
if err != nil {
|
||||
return err
|
||||
log.Infof("Unable to update container %. Proceeding to next.", containers[i].Name())
|
||||
log.Debug(err)
|
||||
stale = false
|
||||
}
|
||||
containers[i].Stale = stale
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user