aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initoverlay.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-29 01:12:02 +0900
committerOphestra <cat@gensokyo.uk>2025-08-29 01:12:02 +0900
commita462341a0a3e1132f3fcdb1efb0f7a56e851a9e1 (patch)
tree7780ebb8d871a306ebc4b8bb1205513689f2ebb6 /container/initoverlay.go
parent84ad9791e2f373d5869b2da6675c70f23deac8a0 (diff)
container: repeat and impossible state types
This moves repeated Op errors and impossible internal state errors off of msg. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initoverlay.go')
-rw-r--r--container/initoverlay.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/initoverlay.go b/container/initoverlay.go
index c9138706..44c83480 100644
--- a/container/initoverlay.go
+++ b/container/initoverlay.go
@@ -97,7 +97,7 @@ func (o *MountOverlayOp) early(_ *setupState, k syscallDispatcher) error {
if !o.ephemeral {
if o.Upper != o.Work && (o.Upper == nil || o.Work == nil) {
// unreachable
- return msg.WrapErr(fs.ErrClosed, "impossible overlay state reached")
+ return OpStateError("overlay")
}
if o.Upper != nil {