diff options
Diffstat (limited to 'container/container.go')
| -rw-r--r-- | container/container.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/container/container.go b/container/container.go index 8af77315..3571d04a 100644 --- a/container/container.go +++ b/container/container.go @@ -154,11 +154,8 @@ func (e *StartError) Error() string { return e.Step } - { - var syscallError *os.SyscallError - if errors.As(e.Err, &syscallError) && syscallError != nil { - return e.Step + " " + syscallError.Error() - } + if se, ok := errors.AsType[*os.SyscallError](e.Err); ok && se != nil { + return e.Step + " " + se.Error() } return e.Step + ": " + e.Err.Error() |
