if (!Format) {
handleAllErrors(Format.takeError(), [&](const ErrorInfoBase &PE) {
PE.log(WithColor::error());
- WithColor::error() << '\n';
+ errs() << '\n';
});
return false;
}
Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
- remarks::createRemarkParser(*Format, (*Buf)->getBuffer());
+ remarks::createRemarkParserFromMeta(*Format, (*Buf)->getBuffer());
if (!MaybeParser) {
handleAllErrors(MaybeParser.takeError(), [&](const ErrorInfoBase &PE) {
PE.log(WithColor::error());
+ errs() << '\n';
});
return false;
}
consumeError(std::move(E));
break;
}
- handleAllErrors(MaybeRemark.takeError(), [&](const ErrorInfoBase &PE) {
+ handleAllErrors(std::move(E), [&](const ErrorInfoBase &PE) {
PE.log(WithColor::error());
+ errs() << '\n';
});
return false;
}