aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-22 21:29:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-09-22 21:29:33 +0200
commit893be6f5e36abb58bbaa9c49055a5218114dd514 (patch)
tree262874d6394681163e6f189f02e721f8c346ef4c /src/libexpr/primops
parent14d3f450098e0f4a9b8d538545f1d1bd1decdab3 (diff)
Don't catch exceptions by value
Diffstat (limited to 'src/libexpr/primops')
-rw-r--r--src/libexpr/primops/fetchGit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchGit.cc b/src/libexpr/primops/fetchGit.cc
index 1b55b6f32..64f138195 100644
--- a/src/libexpr/primops/fetchGit.cc
+++ b/src/libexpr/primops/fetchGit.cc
@@ -37,7 +37,7 @@ GitInfo exportGit(ref<Store> store, std::string uri,
try {
runProgram("git", true, { "-C", uri, "diff-index", "--quiet", "HEAD", "--" });
- } catch (ExecError e) {
+ } catch (ExecError & e) {
if (!WIFEXITED(e.status) || WEXITSTATUS(e.status) != 1) throw;
clean = false;
}