chore: added better error reporting in ydi client
This commit is contained in:
parent
ae96216b1c
commit
237639459a
1 changed files with 2 additions and 0 deletions
|
|
@ -140,6 +140,8 @@ void reveal_clue(NetworkData::ClueID id) {
|
|||
if (connection) {
|
||||
std::scoped_lock lock{ connection->mtx };
|
||||
multipart(NetworkData::MSG_REVEAL, id).send(*connection->socket);
|
||||
} else {
|
||||
print_error("ydi::client::send::reveal_clue: No connection, exiting without action, call connect and try again");
|
||||
}
|
||||
}
|
||||
} //namespace send
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue