diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-04-20 20:01:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 20:01:37 +0200 |
commit | 9345b4e9ca1b14071b471851508b37edfc2d1248 (patch) | |
tree | d34d0191b34b0a2d583c162827497170f8ae6fca /src/libutil | |
parent | 2ffc5a45422522122c65cf71a2958e4b891e8134 (diff) | |
parent | f63b0f4540b61d8cdac7a3c52ca6e190f7c1b8cf (diff) |
Merge pull request #3720 from obsidiansystems/fix-url-format
Avoid `fmt` when constructor already does it
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 656804007..b49c1e466 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1082,7 +1082,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; } @@ -1210,7 +1210,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)); } |