diff options
author | Sven Gothel <[email protected]> | 2020-07-27 04:39:58 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-27 04:39:58 +0200 |
commit | 69c2a8a45de2078cb00f9276efd76efc7704bc67 (patch) | |
tree | 39f8c21d03f3f607f0aa1d2f20f28b3bc3b98e02 /src | |
parent | cdc8d0bdd3fde0555ecf6465e03edf32ab91be5e (diff) |
GATTHandler::sendWithReply(): Disclose timeout value in error and exception on .. timeout
Diffstat (limited to 'src')
-rw-r--r-- | src/direct_bt/GATTHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/direct_bt/GATTHandler.cpp b/src/direct_bt/GATTHandler.cpp index e4067efd..c73ada13 100644 --- a/src/direct_bt/GATTHandler.cpp +++ b/src/direct_bt/GATTHandler.cpp @@ -412,9 +412,9 @@ std::shared_ptr<const AttPDUMsg> GATTHandler::sendWithReply(const AttPDUMsg & ms std::shared_ptr<const AttPDUMsg> res = attPDURing.getBlocking(timeout); if( nullptr == res ) { errno = ETIMEDOUT; - ERR_PRINT("GATTHandler::send: nullptr result (timeout): req %s to %s", msg.toString().c_str(), deviceString.c_str()); + ERR_PRINT("GATTHandler::send: nullptr result (timeout %d): req %s to %s", timeout, msg.toString().c_str(), deviceString.c_str()); disconnect(true /* disconnectDevice */, true /* ioErrorCause */); - throw BluetoothException("GATTHandler::send: nullptr result (timeout): req "+msg.toString()+" to "+deviceString, E_FILE_LINE); + throw BluetoothException("GATTHandler::send: nullptr result (timeout "+std::to_string(timeout)+"): req "+msg.toString()+" to "+deviceString, E_FILE_LINE); } return res; } |