diff --git a/orbit/pkg/execuser/execuser_linux.go b/orbit/pkg/execuser/execuser_linux.go index 0eed2b8af0fe..1e9614d01be8 100644 --- a/orbit/pkg/execuser/execuser_linux.go +++ b/orbit/pkg/execuser/execuser_linux.go @@ -66,6 +66,7 @@ func runWithOutput(path string, opts eopts) (output []byte, exitCode int, err er if err != nil { if exitErr, ok := err.(*exec.ExitError); ok { exitCode = exitErr.ExitCode() + return output, exitCode, fmt.Errorf("%q exited with code %d: %w", path, exitCode, err) } return output, -1, fmt.Errorf("%q error: %w", path, err) }