Fix TRY_STATUS_PROMISE usage with Result.
This commit is contained in:
parent
1f9c6c7352
commit
c5cee50877
@ -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; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user