mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 17:41:05 +01:00
idlewatcher: fix visiting unhealthy idle watched container causes panic
This commit is contained in:
@@ -180,7 +180,7 @@ func (w *Watcher) wakeIfStopped() error {
|
||||
case "running":
|
||||
return nil
|
||||
default:
|
||||
panic(errShouldNotReachHere)
|
||||
return E.Errorf("unexpected container status: %s", status)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user