system/output: pass through LinkError

This has similar formatting to PathError.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-09-06 17:41:06 +09:00
parent e68db7fbfc
commit fcd0f2ede7
2 changed files with 7 additions and 14 deletions

View File

@@ -34,6 +34,7 @@ func (e *OpError) Error() string {
switch {
case errors.As(e.Err, new(*os.PathError)),
errors.As(e.Err, new(*os.LinkError)),
errors.As(e.Err, new(*net.OpError)),
errors.As(e.Err, new(*container.StartError)):
return e.Err.Error()