idlewatcher: fix visiting unhealthy idle watched container causes panic

This commit is contained in:
yusing 2025-01-21 10:37:09 +08:00
parent 5faba1b5a9
commit 5d3a93f103

View file

@ -180,7 +180,7 @@ func (w *Watcher) wakeIfStopped() error {
case "running": case "running":
return nil return nil
default: default:
panic(errShouldNotReachHere) return E.Errorf("unexpected container status: %s", status)
} }
} }