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:
1 parent
0ebb0f7afe
commit
7a98540d2f
1 file changed
+1
-1
@@ -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...)
|
||||
|
||||
Reference in new issue
Block a user