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":
return nil
default:
panic(errShouldNotReachHere)
return E.Errorf("unexpected container status: %s", status)
}
}