aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/errors.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-15 01:44:43 +0900
committerOphestra <cat@gensokyo.uk>2025-09-15 01:44:43 +0900
commit8690419c2d577a27efe3cfcafc39c05b7646926b (patch)
treec792c397d9026c01cecb3a7610d9ad9f7149f1fe /internal/app/errors.go
parent1cdc6b4246ac82adb0c9ed7620d3f7225f1a3e7f (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/errors.go')
-rw-r--r--internal/app/errors.go5
1 files changed, 3 insertions, 2 deletions
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}
}
}