forked from lix-project/lix
Fix bad_format_string error when builder stdout contains % (#10063)
(cherry picked from commit e2b6821ca0147f36bcb9404aab080f80746984c8) Co-authored-by: roblabla <unfiltered@roblab.la>
This commit is contained in:
parent
2a6a7aad3f
commit
afb55f36df
|
@ -444,7 +444,7 @@ Error readError(Source & source)
|
||||||
auto msg = readString(source);
|
auto msg = readString(source);
|
||||||
ErrorInfo info {
|
ErrorInfo info {
|
||||||
.level = level,
|
.level = level,
|
||||||
.msg = hintformat(fmt("%s", msg)),
|
.msg = hintfmt(msg),
|
||||||
};
|
};
|
||||||
auto havePos = readNum<size_t>(source);
|
auto havePos = readNum<size_t>(source);
|
||||||
assert(havePos == 0);
|
assert(havePos == 0);
|
||||||
|
@ -453,7 +453,7 @@ Error readError(Source & source)
|
||||||
havePos = readNum<size_t>(source);
|
havePos = readNum<size_t>(source);
|
||||||
assert(havePos == 0);
|
assert(havePos == 0);
|
||||||
info.traces.push_back(Trace {
|
info.traces.push_back(Trace {
|
||||||
.hint = hintformat(fmt("%s", readString(source)))
|
.hint = hintfmt(readString(source))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return Error(std::move(info));
|
return Error(std::move(info));
|
||||||
|
|
Loading…
Reference in a new issue