diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-07T14·35+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-09-07T14·35+0200 |
commit | 33c3f91885429b60cab551e761f297a640aff7d5 (patch) | |
tree | 87d629c7c53c83e4c930633484c4f0b887d382dd /src/libstore/local-store.cc | |
parent | 91405986f4d076d08051ebe980af6ac6ba124323 (diff) |
Handle queryPathInfo() failure from substituters when fallback is enabled
Fixes #1990.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index c91dbf241bcf..5e392c237e88 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -880,6 +880,11 @@ void LocalStore::querySubstitutablePathInfos(const PathSet & paths, narInfo ? narInfo->fileSize : 0, info->narSize}; } catch (InvalidPath) { + } catch (Error & e) { + if (settings.tryFallback) + printError(e.what()); + else + throw; } } } |