diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-12 06:46:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-12 06:52:35 +0900 |
| commit | f8760438446ee4210a479402d91018ad610bcf34 (patch) | |
| tree | ab8b3a1cbf69d2c2f42531fd786a480ca87f889e /internal/app/app_test.go | |
| parent | 6265aea73a5f4933f4837bc1298c22fcd39b6f4f (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_test.go')
| -rw-r--r-- | internal/app/app_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go index ab94b1ca..8b54b4e2 100644 --- a/internal/app/app_test.go +++ b/internal/app/app_test.go @@ -11,7 +11,6 @@ import ( "hakurei.app/hst" "hakurei.app/internal/app" "hakurei.app/internal/app/state" - "hakurei.app/internal/hlog" "hakurei.app/internal/sys" "hakurei.app/system" ) @@ -37,8 +36,11 @@ func TestApp(t *testing.T) { ) if !t.Run("seal", func(t *testing.T) { if sa, err := a.Seal(tc.config); err != nil { - hlog.PrintBaseError(err, "got generic error:") - t.Errorf("Seal: error = %v", err) + if s, ok := container.GetErrorMessage(err); !ok { + t.Errorf("Seal: error = %v", err) + } else { + t.Errorf("Seal: %s", s) + } return } else { gotSys, gotContainer = app.AppIParams(a, sa) |
