Use Status::move_as_error_suffix to keep error type.

This commit is contained in:
levlam 2021-06-14 01:24:15 +03:00
parent 924286da8f
commit 8a418e9e03
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void HandshakeActor::return_connection(Status status) {
return;
}
if (status.is_error() && !raw_connection->extra().debug_str.empty()) {
status = Status::Error(status.code(), PSLICE() << status.message() << " : " << raw_connection->extra().debug_str);
status = status.move_as_error_suffix(PSLICE() << " : " << raw_connection->extra().debug_str);
}
Scheduler::unsubscribe(raw_connection->get_poll_info().get_pollable_fd_ref());
if (raw_connection_promise_) {