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:29:33 +0200 |
commit | 893be6f5e36abb58bbaa9c49055a5218114dd514 (patch) | |
tree | 262874d6394681163e6f189f02e721f8c346ef4c /src/libstore | |
parent | 14d3f450098e0f4a9b8d538545f1d1bd1decdab3 (diff) |
Don't catch exceptions by value
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 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()); |