From 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 9 Oct 2025 05:04:08 +0900 Subject: message: relocate from container This package is quite useful. This change allows it to be imported without importing container. Signed-off-by: Ophestra --- internal/app/hsu.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/app/hsu.go') diff --git a/internal/app/hsu.go b/internal/app/hsu.go index 982cb51b..9f0408ac 100644 --- a/internal/app/hsu.go +++ b/internal/app/hsu.go @@ -9,9 +9,9 @@ import ( "strconv" "sync" - "hakurei.app/container" "hakurei.app/container/fhs" "hakurei.app/hst" + "hakurei.app/message" ) // Hsu caches responses from cmd/hsu. @@ -74,7 +74,7 @@ func (h *Hsu) ID() (int, error) { func (h *Hsu) MustID() int { return h.MustIDMsg(nil) } // MustIDMsg implements MustID with a custom [container.Msg]. -func (h *Hsu) MustIDMsg(msg container.Msg) int { +func (h *Hsu) MustIDMsg(msg message.Msg) int { id, err := h.ID() if err == nil { return id @@ -87,7 +87,7 @@ func (h *Hsu) MustIDMsg(msg container.Msg) int { } os.Exit(1) return -0xdeadbeef - } else if m, ok := container.GetErrorMessage(err); ok { + } else if m, ok := message.GetMessage(err); ok { log.Fatal(m) return -0xdeadbeef } else { -- cgit v1.3.1