diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-07 16:35:48 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-09-07 16:35:48 +0200 |
commit | 33c3f91885429b60cab551e761f297a640aff7d5 (patch) | |
tree | 87d629c7c53c83e4c930633484c4f0b887d382dd /src/libstore/build.cc | |
parent | 91405986f4d076d08051ebe980af6ac6ba124323 (diff) |
Handle queryPathInfo() failure from substituters when fallback is enabled
Fixes #1990.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index cd37f7a3f..96ca28742 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3682,6 +3682,13 @@ void SubstitutionGoal::tryNext() } catch (InvalidPath &) { tryNext(); return; + } catch (Error & e) { + if (settings.tryFallback) { + printError(e.what()); + tryNext(); + return; + } + throw; } /* Update the total expected download size. */ |