diff --git a/src/input/api/DSU/DSUControllerProvider.cpp b/src/input/api/DSU/DSUControllerProvider.cpp index 345e249f..89065be6 100644 --- a/src/input/api/DSU/DSUControllerProvider.cpp +++ b/src/input/api/DSU/DSUControllerProvider.cpp @@ -263,7 +263,7 @@ void DSUControllerProvider::reader_thread() if (ec) { #ifdef DEBUG_DSU_CLIENT - printf(" DSUControllerProvider::ReaderThread: exception %s\n", ex.what()); + printf(" DSUControllerProvider::ReaderThread: exception %s\n", ec.what()); #endif // there's probably no server listening on the given address:port @@ -406,10 +406,10 @@ void DSUControllerProvider::writer_thread() { m_socket.send_to(boost::asio::buffer(msg.get(), msg->GetSize()), m_receiver_endpoint); } - catch (const std::exception&) + catch (const std::exception& ec) { #ifdef DEBUG_DSU_CLIENT - printf(" DSUControllerProvider::WriterThread: exception %s\n", ex.what()); + printf(" DSUControllerProvider::WriterThread: exception %s\n", ec.what()); #endif std::this_thread::sleep_for(std::chrono::milliseconds(250)); }