mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
Merge pull request #10325 from K900/ooformatting
build-remote: fix format string shenanigans
This commit is contained in:
commit
0bf01917ef
2 changed files with 5 additions and 1 deletions
|
@ -202,7 +202,7 @@ static int main_build_remote(int argc, char * * argv)
|
||||||
else
|
else
|
||||||
drvstr = "<unknown>";
|
drvstr = "<unknown>";
|
||||||
|
|
||||||
auto error = HintFmt(errorText);
|
auto error = HintFmt::fromFormatString(errorText);
|
||||||
error
|
error
|
||||||
% drvstr
|
% drvstr
|
||||||
% neededSystem
|
% neededSystem
|
||||||
|
|
|
@ -144,6 +144,10 @@ public:
|
||||||
: HintFmt("%s", Uncolored(literal))
|
: HintFmt("%s", Uncolored(literal))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
static HintFmt fromFormatString(const std::string & format) {
|
||||||
|
return HintFmt(boost::format(format));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interpolate the given arguments into the format string.
|
* Interpolate the given arguments into the format string.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue