diff --git a/internal/util/cephcmds.go b/internal/util/cephcmds.go index adc95ffb7..8bb55e6db 100644 --- a/internal/util/cephcmds.go +++ b/internal/util/cephcmds.go @@ -48,7 +48,7 @@ func ExecCommand(ctx context.Context, program string, args ...string) (string, s stderr := stderrBuf.String() if err != nil { - err = fmt.Errorf("an error (%w) occurred while running %s args: %v", err, program, sanitizedArgs) + err = fmt.Errorf("an error (%w) and stdError (%s) occurred while running %s args: %v", err, stderr, program, sanitizedArgs) if ctx != context.TODO() { UsefulLog(ctx, "%s", err) }