diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-09 22:04:35 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-09 22:04:35 +0900 |
| commit | a941ac025f9f3a942cab04a6f2447e4cab0e616c (patch) | |
| tree | a309e19a16505b27457e0e1d1bac2d28d0a99105 /container/params.go | |
| parent | 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 (diff) | |
container/init: unwrap descriptive fatal error
These errors are printed with a descriptive message prefixed to them, so it is more readable to expose the underlying errno.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/params.go')
| -rw-r--r-- | container/params.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container/params.go b/container/params.go index f9862a19..a48eabaf 100644 --- a/container/params.go +++ b/container/params.go @@ -31,7 +31,7 @@ func Receive(key string, e any, fdp *uintptr) (func() error, error) { return nil, ErrReceiveEnv } else { if fd, err := strconv.Atoi(s); err != nil { - return nil, errors.Unwrap(err) + return nil, optionalErrorUnwrap(err) } else { setup = os.NewFile(uintptr(fd), "setup") if setup == nil { |
