chore: added better error reporting in ydi client

This commit is contained in:
Sara Gerretsen 2025-10-22 15:32:36 +02:00
parent ae96216b1c
commit 237639459a

View file

@ -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