From 82608164f66dda428189bdc3610f027820408b49 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 9 Aug 2025 17:36:36 +0900 Subject: container/params: remove confusingly named error Signed-off-by: Ophestra --- internal/app/shim_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/app/shim_linux.go b/internal/app/shim_linux.go index e423b321..8573ad10 100644 --- a/internal/app/shim_linux.go +++ b/internal/app/shim_linux.go @@ -64,7 +64,7 @@ func ShimMain() { closeSetup func() error ) if f, err := container.Receive(shimEnv, ¶ms, 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) { -- cgit v1.3.1