mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-12 09:04:02 +02:00
idlewatcher: fix visiting unhealthy idle watched container causes panic
This commit is contained in:
parent
5faba1b5a9
commit
5d3a93f103
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue