diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-29 01:46:54 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-29 01:46:54 +0900 |
| commit | eb3385d490523262e26b6cb691a5e18a07a8b26d (patch) | |
| tree | ed8e9e95f81b4962ebf23d206e963b016975f6c9 /container/initproc.go | |
| parent | b8669338da36c9a4fabec6c49cad20a5f8180cf2 (diff) | |
container/initsymlink: unwrap mount errors
The mount function now wraps its own errors in a much more descriptive type with proper message formatting. Wrapping them no longer makes any sense.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initproc.go')
| -rw-r--r-- | container/initproc.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/container/initproc.go b/container/initproc.go index fe02aeb7..d0038096 100644 --- a/container/initproc.go +++ b/container/initproc.go @@ -24,8 +24,7 @@ func (p *MountProcOp) apply(state *setupState, k syscallDispatcher) error { if err := k.mkdirAll(target, state.ParentPerm); err != nil { return wrapErrSelf(err) } - return wrapErrSuffix(k.mount(SourceProc, target, FstypeProc, MS_NOSUID|MS_NOEXEC|MS_NODEV, zeroString), - fmt.Sprintf("cannot mount proc on %q:", p.Target.String())) + return k.mount(SourceProc, target, FstypeProc, MS_NOSUID|MS_NOEXEC|MS_NODEV, zeroString) } func (p *MountProcOp) Is(op Op) bool { |
