1
0
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:
Ross Cadogan 2016-10-13 18:14:41 +01:00
parent 875efba1d5
commit c4efc83875

View File

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