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.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/errors.go') diff --git a/container/errors.go b/container/errors.go index 2bcb4974..d7651aa9 100644 --- a/container/errors.go +++ b/container/errors.go @@ -18,7 +18,7 @@ func messageFromError(err error) (m string, ok bool) { if m, ok = messagePrefixP[os.PathError]("cannot ", err); ok { return } - if m, ok = messagePrefixP[check.AbsoluteError](zeroString, err); ok { + if m, ok = messagePrefix[check.AbsoluteError](zeroString, err); ok { return } if m, ok = messagePrefix[OpRepeatError](zeroString, err); ok { -- cgit v1.3.1