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

@@ -62,7 +62,7 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) {
offsetSetup int
)
if f, err := Receive(setupEnv, &params, &setupFile); err != nil {
if errors.Is(err, ErrInvalid) {
if errors.Is(err, EBADF) {
log.Fatal("invalid setup descriptor")
}
if errors.Is(err, ErrNotSet) {