aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
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:56:56 +0200
commitbd79c1f6f6391786772a8a79962abe22f374cca4 (patch)
tree8a154f4e1772b960e1ba3c4b15fd3416ab99e4f8 /src/libstore
parent7f9a0033c71a230093e19a97808ea5b5f3e62e3b (diff)
Don't catch exceptions by value
(cherry picked from commit 893be6f5e36abb58bbaa9c49055a5218114dd514)
Diffstat (limited to 'src/libstore')
-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 2fcf08491..a2af51d0e 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -879,8 +879,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());