summaryrefslogtreecommitdiffhomepage
path: root/windows
diff options
context:
space:
mode:
Diffstat (limited to 'windows')
-rw-r--r--windows/windns/src/windns/dnsagent.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/windows/windns/src/windns/dnsagent.cpp b/windows/windns/src/windns/dnsagent.cpp
index 32479a6a07..04bdcdb47d 100644
--- a/windows/windns/src/windns/dnsagent.cpp
+++ b/windows/windns/src/windns/dnsagent.cpp
@@ -155,7 +155,10 @@ void DnsAgent::thread()
if (WAIT_FAILED == status)
{
- m_logSink->error("Failed to wait on events. Restarting wait in 1 minute.");
+ const auto error = common::error::FormatWindowsErrorPlain(GetLastError());
+ const auto message = std::string("Failed to wait on events. Restarting wait in 1 minute. Error: ").append(error);
+
+ m_logSink->error(message.c_str());
if (WAIT_OBJECT_0 == WaitForSingleObject(m_shutdownEvent, 1000 * 60))
{