mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Avoid fmt
when constructor already does it
There is a correctnes issue here, but #3724 will fix that. This is just a cleanup for brevity's sake.
This commit is contained in:
parent
b135de2b5f
commit
75b62e5260
8 changed files with 73 additions and 51 deletions
|
@ -1062,7 +1062,7 @@ std::string runProgram(Path program, bool searchPath, const Strings & args,
|
|||
auto res = runProgram(RunOptions {.program = program, .searchPath = searchPath, .args = args, .input = input});
|
||||
|
||||
if (!statusOk(res.first))
|
||||
throw ExecError(res.first, fmt("program '%1%' %2%", program, statusToString(res.first)));
|
||||
throw ExecError(res.first, "program '%1%' %2%", program, statusToString(res.first));
|
||||
|
||||
return res.second;
|
||||
}
|
||||
|
@ -1190,7 +1190,7 @@ void runProgram2(const RunOptions & options)
|
|||
if (source) promise.get_future().get();
|
||||
|
||||
if (status)
|
||||
throw ExecError(status, fmt("program '%1%' %2%", options.program, statusToString(status)));
|
||||
throw ExecError(status, "program '%1%' %2%", options.program, statusToString(status));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue