Skip to content

Commit

Permalink
core: print the stdout on errors
Browse files Browse the repository at this point in the history
If we fail fetching the ceph version let's also print the stdout since
ceph tends to put the error here too.

Signed-off-by: Sébastien Han <seb@redhat.com>
  • Loading branch information
leseb committed Jan 26, 2022
1 parent 7169490 commit e31e4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ceph/client/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func getCephMonVersionString(context *clusterd.Context, clusterInfo *ClusterInfo
args := []string{"version"}
buf, err := NewCephCommand(context, clusterInfo, args).Run()
if err != nil {
return "", errors.Wrap(err, "failed to run 'ceph version'")
return "", errors.Wrapf(err, "failed to run 'ceph version'. %s", string(buf))
}
output := string(buf)
logger.Debug(output)
Expand Down

0 comments on commit e31e4b4

Please sign in to comment.