From 50972096cd8bffd9b17dbdf656ec34c48edb8f86 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 21:51:31 +0900 Subject: container/vfs: wrap decoder errors This passes line information and handles strconv errors so it reads better. Signed-off-by: Ophestra --- container/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/mount.go') diff --git a/container/mount.go b/container/mount.go index fc2a16e2..6b134ce4 100644 --- a/container/mount.go +++ b/container/mount.go @@ -149,7 +149,7 @@ func (p *procPaths) remount(target string, flags uintptr) error { return p.mountinfo(func(d *vfs.MountInfoDecoder) error { n, err := d.Unfold(targetKFinal) if err != nil { - if errors.Is(err, ESTALE) { + if errors.As(err, new(vfs.UnfoldTargetError)) { return msg.WrapErr(err, fmt.Sprintf("mount point %q never appeared in mountinfo", targetKFinal)) } -- cgit v1.3.1