fix(go.d/pkg/ndexec): return the output along with the error (#21405)
Ilya Mashchenko committed
Dec 5, 2025 at 07:21 UTC
f483da8f13949288e3045ec5d144bb9790429d4b
1 file changed
+1
-1
src/go/plugin/go.d/pkg/ndexec/ndexec.go
+1
-1
@@ -87,7 +87,7 @@ func (r *runner) run(log *logger.Logger, timeout time.Duration, helperPath, labe
87
err = ctx.Err()
88
}
89
90
- return nil, cmdStr, fmt.Errorf("%s: %v: %w (stderr: %s)", label, ex, err, strings.TrimSpace(s))
90
+ return out, cmdStr, fmt.Errorf("%s: %v: %w (stderr: %s)", label, ex, err, strings.TrimSpace(s))
91
}
92
93
return out, cmdStr, nil