1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Improve 'coroutine has finished' error message

This commit is contained in:
Eelco Dolstra 2018-08-21 15:22:04 +02:00
parent 6317c65937
commit ebe3d2d370
3 changed files with 16 additions and 7 deletions

View file

@ -609,6 +609,8 @@ void copyStorePath(ref<Store> srcStore, ref<Store> dstStore,
act.progress(total, info->narSize);
});
srcStore->narFromPath({storePath}, wrapperSink);
}, [&]() {
throw EndOfFile("NAR for '%s' fetched from '%s' is incomplete", storePath, srcStore->getUri());
});
dstStore->addToStore(*info, *source, repair, checkSigs);