1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 15:51:15 +02:00

errorinfo constructor test

This commit is contained in:
Ben Burdette 2020-04-29 18:57:05 -06:00
parent 2d0f766a77
commit 39ff80d031
4 changed files with 16 additions and 5 deletions

View file

@ -284,7 +284,7 @@ void BinaryCacheStore::narFromPath(const StorePath & storePath, Sink & sink)
try {
getFile(info->url, *decompressor);
} catch (NoSuchBinaryCacheFile & e) {
throw SubstituteGone(e.what());
throw SubstituteGone(e.info());
}
decompressor->finish();