diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-11 04:22:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-11 04:23:55 +0900 |
| commit | e1e46504a1939aff927ae47508b0523a7305fb18 (patch) | |
| tree | 94f3e9871ac139d701915c2b7517e823701c60ff /container/errors_test.go | |
| parent | ec9343ebd625cc97a0dd8b09f030f84b142b7ca4 (diff) | |
container/check: return error backed by string type
The struct turned out not necessary during initial implementation but was not unwrapped into its single string field. This change replaces it with the underlying string and removes the indirection.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/errors_test.go')
| -rw-r--r-- | container/errors_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container/errors_test.go b/container/errors_test.go index 5c55af45..71b4a9ac 100644 --- a/container/errors_test.go +++ b/container/errors_test.go @@ -37,7 +37,7 @@ func TestMessageFromError(t *testing.T) { Err: stub.UniqueError(0xdeadbeef), }, "cannot mount /sysroot: unique error 3735928559 injected by the test suite", true}, - {"absolute", &check.AbsoluteError{Pathname: "etc/mtab"}, + {"absolute", check.AbsoluteError("etc/mtab"), `path "etc/mtab" is not absolute`, true}, {"repeat", OpRepeatError("autoetc"), |
