aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-04-20 20:01:37 +0200
committerGitHub <noreply@github.com>2022-04-20 20:01:37 +0200
commit9345b4e9ca1b14071b471851508b37edfc2d1248 (patch)
treed34d0191b34b0a2d583c162827497170f8ae6fca /src/libutil
parent2ffc5a45422522122c65cf71a2958e4b891e8134 (diff)
parentf63b0f4540b61d8cdac7a3c52ca6e190f7c1b8cf (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.cc4
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));
}