From 8690419c2d577a27efe3cfcafc39c05b7646926b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 15 Sep 2025 01:44:43 +0900 Subject: hst: replace internal/app error This turns out to still be quite useful across internal/app and its relatives. Perhaps a cleaner replacement for baseError. Signed-off-by: Ophestra --- internal/app/errors.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/app/errors.go') diff --git a/internal/app/errors.go b/internal/app/errors.go index 7a95508e..566103d4 100644 --- a/internal/app/errors.go +++ b/internal/app/errors.go @@ -5,6 +5,7 @@ import ( "log" "hakurei.app/container" + "hakurei.app/hst" "hakurei.app/internal/hlog" ) @@ -30,7 +31,7 @@ func PrintRunStateErr(rs *RunState, runErr error) (code int) { } else { // InnerErr is returned by c.Save(&sd, seal.ct), and are always unwrapped printMessageError("error returned during revert:", - &FinaliseError{Step: "save process state", Err: se.InnerErr}) + &hst.AppError{Step: "save process state", Err: se.InnerErr}) } } } @@ -133,7 +134,7 @@ func (e *StateStoreError) equiv(step string) error { if e.Inner && e.InnerErr == nil && e.DoErr == nil && e.OpErr == nil && errors.Join(e.Errs...) == nil { return nil } else { - return &FinaliseError{Step: step, Err: e} + return &hst.AppError{Step: step, Err: e} } } -- cgit v1.3.1