Fix TRY_STATUS_PROMISE usage with Result.

This commit is contained in:
levlam 2021-07-17 23:37:03 +03:00
parent 1f9c6c7352
commit c5cee50877

View File

@ -40,7 +40,7 @@
{ \ { \
auto try_status = (status); \ auto try_status = (status); \
if (try_status.is_error()) { \ if (try_status.is_error()) { \
promise_name.set_error(std::move(try_status)); \ promise_name.set_error(try_status.move_as_error()); \
return; \ return; \
} \ } \
} }