From 08eeafe8174efed2414d66788a927168efeba691 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 22:15:05 +0900 Subject: container/mount: unwrap vfs decoder errors These are now handled by init. This eliminates generic WrapErr from mount and procPaths. Signed-off-by: Ophestra --- container/errors_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'container/errors_test.go') diff --git a/container/errors_test.go b/container/errors_test.go index f99812b8..df69c4b1 100644 --- a/container/errors_test.go +++ b/container/errors_test.go @@ -4,8 +4,11 @@ import ( "errors" "os" "reflect" + "strconv" "syscall" "testing" + + "hakurei.app/container/vfs" ) func TestMessageFromError(t *testing.T) { @@ -39,6 +42,9 @@ func TestMessageFromError(t *testing.T) { {"state", OpStateError("overlay"), "impossible overlay state reached", true}, + {"vfs parse", &vfs.DecoderError{Op: "parse", Line: 0xdeadbeef, Err: &strconv.NumError{Func: "Atoi", Num: "meow", Err: strconv.ErrSyntax}}, + `cannot parse mountinfo at line 3735928559: numeric field "meow" invalid syntax`, true}, + {"tmpfs", TmpfsSizeError(-1), "tmpfs size -1 out of bounds", true}, -- cgit v1.3.1