aboutsummaryrefslogtreecommitdiff
path: root/src/nix/edit.cc
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/nix/edit.cc
parent14d3f450098e0f4a9b8d538545f1d1bd1decdab3 (diff)
Don't catch exceptions by value
Diffstat (limited to 'src/nix/edit.cc')
-rw-r--r--src/nix/edit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc
index c62b35c46..632a99d11 100644
--- a/src/nix/edit.cc
+++ b/src/nix/edit.cc
@@ -50,7 +50,7 @@ struct CmdEdit : InstallableCommand
int lineno;
try {
lineno = std::stoi(std::string(pos, colon + 1));
- } catch (std::invalid_argument e) {
+ } catch (std::invalid_argument & e) {
throw Error("cannot parse line number '%s'", pos);
}