Skip to content

Commit

Permalink
Fix bad_format_string error when builder stdout contains % (#10063)
Browse files Browse the repository at this point in the history
(cherry picked from commit e2b6821)

Co-authored-by: roblabla <[email protected]>
  • Loading branch information
github-actions[bot] and roblabla authored Feb 22, 2024
1 parent 2a6a7aa commit afb55f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libutil/serialise.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Error readError(Source & source)
auto msg = readString(source);
ErrorInfo info {
.level = level,
.msg = hintformat(fmt("%s", msg)),
.msg = hintfmt(msg),
};
auto havePos = readNum<size_t>(source);
assert(havePos == 0);
Expand All @@ -453,7 +453,7 @@ Error readError(Source & source)
havePos = readNum<size_t>(source);
assert(havePos == 0);
info.traces.push_back(Trace {
.hint = hintformat(fmt("%s", readString(source)))
.hint = hintfmt(readString(source))
});
}
return Error(std::move(info));
Expand Down

0 comments on commit afb55f3

Please sign in to comment.