]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
erasure-code: return error using `ss` not derr
authorKefu Chai <kchai@redhat.com>
Mon, 12 Nov 2018 03:04:54 +0000 (11:04 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Nov 2018 06:34:03 +0000 (14:34 +0800)
commit5b70ba8cdfd1e3adfd2f8d4b57e35428a3b3d7bd
tree2ccda02bc7543392d6105c363e32bb11f221cbc0
parent2b13c7f7e9697be2d3a0188d185addea2553539e
erasure-code: return error using `ss` not derr

log is not very visible from user's perspective. we'd better return the
error message using the input parameter, if the technique is
unsupported.

also, remove the trailing newline, as `ss` will be sent back to user,
it's the the front-end's responsibility to format the error message.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/erasure-code/jerasure/ErasureCodePluginJerasure.cc