diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-08-21T13·22+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-08-21T13·22+0200 |
commit | ebe3d2d3704aca001ff818295af014581dcf348f (patch) | |
tree | 764c095d28a734dd4ba89c94de086214460bbc93 /src/libstore/store-api.cc | |
parent | 6317c65937ad7d9c5a954c4dfc48de259e55f4f3 (diff) |
Improve 'coroutine has finished' error message
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 7a4a5f5eb85d..1f42097fccfb 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -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); |