Add std::endl to separate independent error messages related to erasure
code.
Signed-off-by: Loic Dachary <loic@dachary.org>
ErasureCodeInterfaceRef erasure_code;
int err = get_erasure_code(profile, &erasure_code, ss);
if (err) {
- ss << "failed to load plugin using profile " << profile;
+ ss << "failed to load plugin using profile " << profile << std::endl;
return err;
}
if (plugin == profile.end()) {
ss << "cannot determine the erasure code plugin"
<< " because there is no 'plugin' entry in the erasure_code_profile "
- << profile;
+ << profile << std::endl;
return -EINVAL;
}
ErasureCodePluginRegistry &instance = ErasureCodePluginRegistry::instance();