aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.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/libstore/local-store.cc
parent14d3f450098e0f4a9b8d538545f1d1bd1decdab3 (diff)
Don't catch exceptions by value
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 1062df781..307c00dbb 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -872,8 +872,8 @@ void LocalStore::querySubstitutablePathInfos(const PathSet & paths,
info->references,
narInfo ? narInfo->fileSize : 0,
info->narSize};
- } catch (InvalidPath) {
- } catch (SubstituterDisabled) {
+ } catch (InvalidPath &) {
+ } catch (SubstituterDisabled &) {
} catch (Error & e) {
if (settings.tryFallback)
printError(e.what());