aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-09-19 13:33:56 +0200
committerEelco Dolstra <edolstra@gmail.com>2023-09-19 13:33:56 +0200
commitc451b48993daa6dd3992805eaf6119c1ffd1d0c3 (patch)
tree7ae3919a52b5f008c9ee00a5f7464049177df9d2 /src/libutil/util.cc
parent539cc5e5f00c0d524dec6e73b08ab8cb0f5a9630 (diff)
parent2a52ec4e928c254338a612a6b40355512298ef38 (diff)
Merge remote-tracking branch 'origin/master' into p/flake-update
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index f24a6e165..5a10c69e2 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -60,7 +60,7 @@ void initLibUtil() {
bool caught = false;
try {
throwExceptionSelfCheck();
- } catch (nix::Error _e) {
+ } catch (const nix::Error & _e) {
caught = true;
}
// This is not actually the main point of this check, but let's make sure anyway: