error copy has to be called explicitly

This commit is contained in:
Claudius Holeksa 2022-03-15 18:54:47 +01:00
parent 5a6f63eadb
commit 2d8889983a
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ Own<AsyncIoStream> stream_, Codec codec_, BufferT in_, BufferT out_):
return Void{};
}).sink([this](Error error){
incoming_feeder->fail(error);
incoming_feeder->fail(error.copyError());
return error;
})