container/params: remove confusingly named error

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-09 17:36:36 +09:00
parent edd6f2cfa9
commit 82608164f6
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ func ShimMain() {
closeSetup func() error
)
if f, err := container.Receive(shimEnv, &params, nil); err != nil {
if errors.Is(err, container.ErrInvalid) {
if errors.Is(err, syscall.EBADF) {
log.Fatal("invalid config descriptor")
}
if errors.Is(err, container.ErrNotSet) {