mirror of
https://github.com/NixOS/nix
synced 2025-07-02 21:51:50 +02:00
build-remote: fix format string shenanigans
HintFmt(string) invokes the HintFmt("%s", literal) constructor, which is not what we want here. Add a constructor with a proper name and call that. Next step: rename all the other ones to HintFmt::literal(string). Fixes https://github.com/NixOS/nix/issues/10238
This commit is contained in:
parent
290072ca1e
commit
2d4edb945b
2 changed files with 5 additions and 1 deletions
|
@ -202,7 +202,7 @@ static int main_build_remote(int argc, char * * argv)
|
|||
else
|
||||
drvstr = "<unknown>";
|
||||
|
||||
auto error = HintFmt(errorText);
|
||||
auto error = HintFmt::fromFormatString(errorText);
|
||||
error
|
||||
% drvstr
|
||||
% neededSystem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue