From 712cfc06d7e541c6e28b4b127a4760b4cfccffa8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 30 Aug 2025 23:44:48 +0900 Subject: 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 --- system/output_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/output_test.go') diff --git a/system/output_test.go b/system/output_test.go index 5ad219b7..ba760e84 100644 --- a/system/output_test.go +++ b/system/output_test.go @@ -26,11 +26,11 @@ func TestOpError(t *testing.T) { ErrDBusConfig, syscall.ENOTRECOVERABLE}, {"apply", newOpError("tmpfile", syscall.EBADE, false), - "cannot apply tmpfile: invalid exchange", + "apply tmpfile: invalid exchange", syscall.EBADE, syscall.EBADF}, {"revert", newOpError("wayland", syscall.EBADF, true), - "cannot revert wayland: bad file descriptor", + "revert wayland: bad file descriptor", syscall.EBADF, syscall.EBADE}, {"path", newOpError("tmpfile", &os.PathError{Op: "stat", Path: "/run/dbus", Err: syscall.EISDIR}, false), -- cgit v1.3.1