diff options
-rw-r--r-- | src/libutil/serialise.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc index 692144b75..a6cc919d2 100644 --- a/src/libutil/serialise.cc +++ b/src/libutil/serialise.cc @@ -230,7 +230,7 @@ std::unique_ptr<FinishSink> sourceToSink(std::function<void(Source &)> fun) if (cur.empty()) { yield(); if (yield.get()) { - return (size_t)0; + throw EndOfFile("coroutine exhausted"); } } |