From a462341a0a3e1132f3fcdb1efb0f7a56e851a9e1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 01:12:02 +0900 Subject: container: repeat and impossible state types This moves repeated Op errors and impossible internal state errors off of msg. Signed-off-by: Ophestra --- container/autoetc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'container/autoetc.go') diff --git a/container/autoetc.go b/container/autoetc.go index ee8dfbe4..d73d2752 100644 --- a/container/autoetc.go +++ b/container/autoetc.go @@ -3,7 +3,6 @@ package container import ( "encoding/gob" "fmt" - "io/fs" ) func init() { gob.Register(new(AutoEtcOp)) } @@ -24,7 +23,7 @@ func (e *AutoEtcOp) Valid() bool { return e != ni func (e *AutoEtcOp) early(*setupState, syscallDispatcher) error { return nil } func (e *AutoEtcOp) apply(state *setupState, k syscallDispatcher) error { if state.nonrepeatable&nrAutoEtc != 0 { - return msg.WrapErr(fs.ErrInvalid, "autoetc is not repeatable") + return OpRepeatError("autoetc") } state.nonrepeatable |= nrAutoEtc -- cgit v1.3.1