diff options
author | K900 <me@0upti.me> | 2024-03-26 10:55:15 +0300 |
---|---|---|
committer | jade <lix@jade.fyi> | 2024-03-26 07:58:24 +0000 |
commit | a69f6e185adabf42cc310375b5b57d7dda52397c (patch) | |
tree | d3dd81ef060714e911a86681a1769aba8574f035 /src/build-remote | |
parent | 73624f7d9cc032dd0485824a25512112883e127f (diff) |
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://git.lix.systems/lix-project/lix/issues/178
Change-Id: If52d2eb8864ceb8663e05992e9d1fffef573d6b8
Diffstat (limited to 'src/build-remote')
-rw-r--r-- | src/build-remote/build-remote.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 04aade9db..e2ada70cd 100644 --- a/src/build-remote/build-remote.cc +++ b/src/build-remote/build-remote.cc @@ -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 |