diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-22 21:29:33 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-09-22 21:56:56 +0200 |
commit | bd79c1f6f6391786772a8a79962abe22f374cca4 (patch) | |
tree | 8a154f4e1772b960e1ba3c4b15fd3416ab99e4f8 /src/libstore | |
parent | 7f9a0033c71a230093e19a97808ea5b5f3e62e3b (diff) |
Don't catch exceptions by value
(cherry picked from commit 893be6f5e36abb58bbaa9c49055a5218114dd514)
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/local-store.cc | 4 |
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()); |