1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Handle queryPathInfo() failure from substituters when fallback is enabled

Fixes #1990.
This commit is contained in:
Eelco Dolstra 2018-09-07 16:35:48 +02:00
parent 91405986f4
commit 33c3f91885
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 12 additions and 0 deletions

View file

@ -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. */