From e1e46504a1939aff927ae47508b0523a7305fb18 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 11 Jan 2026 04:22:04 +0900 Subject: container/check: return error backed by string type The struct turned out not necessary during initial implementation but was not unwrapped into its single string field. This change replaces it with the underlying string and removes the indirection. Signed-off-by: Ophestra --- container/errors_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/errors_test.go') diff --git a/container/errors_test.go b/container/errors_test.go index 5c55af45..71b4a9ac 100644 --- a/container/errors_test.go +++ b/container/errors_test.go @@ -37,7 +37,7 @@ func TestMessageFromError(t *testing.T) { Err: stub.UniqueError(0xdeadbeef), }, "cannot mount /sysroot: unique error 3735928559 injected by the test suite", true}, - {"absolute", &check.AbsoluteError{Pathname: "etc/mtab"}, + {"absolute", check.AbsoluteError("etc/mtab"), `path "etc/mtab" is not absolute`, true}, {"repeat", OpRepeatError("autoetc"), -- cgit v1.3.1