core: dont overwrite err incase of stderr

dont overwrite err incase of stderr

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 9eb218f848)
This commit is contained in:
Madhu Rajanna authored and Mergify committed 2025-03-14 15:52:16 +00:00
1 parent 0ebb0f7afe
commit 7a98540d2f
1 file changed
+1 -1
+1 -1
View File
@@ -212,7 +212,7 @@ func (c *CephToolCommand) run() ([]byte, error) {
err = errors.Errorf("%s", err.Error())
}
if stderr != "" {
err = errors.Errorf("%s", stderr)
err = errors.Errorf("err=%s: stderr=%s", err.Error(), stderr)
}
} else if c.timeout == 0 {
output, err = c.context.Executor.ExecuteCommandWithOutput(command, args...)