From 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 20:06:26 +0900 Subject: container/check: move absolute pathname This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra --- container/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'container/errors.go') diff --git a/container/errors.go b/container/errors.go index f4198b09..e3f4b9d9 100644 --- a/container/errors.go +++ b/container/errors.go @@ -5,6 +5,7 @@ import ( "os" "syscall" + "hakurei.app/container/check" "hakurei.app/container/vfs" ) @@ -16,7 +17,7 @@ func messageFromError(err error) (string, bool) { if m, ok := messagePrefixP[os.PathError]("cannot ", err); ok { return m, ok } - if m, ok := messagePrefixP[AbsoluteError]("", err); ok { + if m, ok := messagePrefixP[check.AbsoluteError]("", err); ok { return m, ok } if m, ok := messagePrefix[OpRepeatError]("", err); ok { -- cgit v1.3.1