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>
} else if (t == "liber8tion") {
interface = new ErasureCodeJerasureLiber8tion();
} else {
- derr << "technique=" << t << " is not a valid coding technique. "
+ *ss << "technique=" << t << " is not a valid coding technique. "
<< " Choose one of the following: "
<< "reed_sol_van, reed_sol_r6_op, cauchy_orig, "
- << "cauchy_good, liberation, blaum_roth, liber8tion"
- << dendl;
+ << "cauchy_good, liberation, blaum_roth, liber8tion";
return -ENOENT;
}
dout(20) << __func__ << ": " << profile << dendl;