diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-30 23:44:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-30 23:44:48 +0900 |
| commit | 712cfc06d7e541c6e28b4b127a4760b4cfccffa8 (patch) | |
| tree | 3dbd2bc0fc03ba5d108646b342392f5fdf841c90 /internal | |
| parent | f5abce9df5727904a1daa246025a87c4bfe62553 (diff) | |
container: wrap container init start errors
This helps indicate the exact origin and nature of the error. This eliminates generic WrapErr from container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/app/app.go | 2 | ||||
| -rw-r--r-- | internal/app/shim.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index 17b4103d..2039213c 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -62,7 +62,7 @@ func (a *App) String() string { return fmt.Sprintf("(unsealed app %s)", a.id) } -// Seal determines the outcome of [hst.Config] as a [SealedApp]. +// Seal determines the [Outcome] of [hst.Config]. // Values stored in and referred to by [hst.Config] might be overwritten and must not be used again. func (a *App) Seal(config *hst.Config) (*Outcome, error) { a.mu.Lock() diff --git a/internal/app/shim.go b/internal/app/shim.go index 33ede520..960506f3 100644 --- a/internal/app/shim.go +++ b/internal/app/shim.go @@ -65,7 +65,7 @@ func ShimMain() { if errors.Is(err, syscall.EBADF) { log.Fatal("invalid config descriptor") } - if errors.Is(err, container.ErrNotSet) { + if errors.Is(err, container.ErrReceiveEnv) { log.Fatal("HAKUREI_SHIM not set") } |
