Skip to content

client.call_for return io_error #641

Answered by poor-circle
jjqcat asked this question in Q&A
Discussion options

You must be logged in to vote
if (resD.error().code != coro_rpc::errc::ok)

That is not correct. if rpc dont have error, call error() method is undefiend behavior(). See https://en.cppreference.com/w/cpp/utility/expected/error

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by poor-circle
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #640 on March 20, 2024 06:45.