diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-29 01:12:02 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-29 01:12:02 +0900 |
| commit | a462341a0a3e1132f3fcdb1efb0f7a56e851a9e1 (patch) | |
| tree | 7780ebb8d871a306ebc4b8bb1205513689f2ebb6 /container/autoetc.go | |
| parent | 84ad9791e2f373d5869b2da6675c70f23deac8a0 (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/autoetc.go')
| -rw-r--r-- | container/autoetc.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
