From f8760438446ee4210a479402d91018ad610bcf34 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 12 Sep 2025 06:46:12 +0900 Subject: internal/hlog: remove error wrapping This was a stopgap solution that lasted for way too long. This finally removes it and prepares internal/app for some major changes. Signed-off-by: Ophestra --- internal/app/container.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/app/container.go') diff --git a/internal/app/container.go b/internal/app/container.go index cdefe170..68ba55eb 100644 --- a/internal/app/container.go +++ b/internal/app/container.go @@ -11,7 +11,6 @@ import ( "hakurei.app/container" "hakurei.app/container/seccomp" "hakurei.app/hst" - "hakurei.app/internal/hlog" "hakurei.app/internal/sys" "hakurei.app/system/dbus" ) @@ -23,7 +22,7 @@ const preallocateOpsCount = 1 << 5 // Note that remaining container setup must be queued by the caller. func newContainer(s *hst.ContainerConfig, os sys.State, prefix string, uid, gid *int) (*container.Params, map[string]string, error) { if s == nil { - return nil, nil, hlog.WrapErr(syscall.EBADE, "invalid container configuration") + return nil, nil, newWithMessage("invalid container configuration") } params := &container.Params{ -- cgit v1.3.1