浏览代码

WinTLS: Improve error reporting

Nils Maier 11 年之前
父节点
当前提交
39d66bd560
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/WinTLSSession.cc

+ 1 - 1
src/WinTLSSession.cc

@@ -805,7 +805,7 @@ std::string WinTLSSession::getLastErrorString()
                     (LPWSTR)&buf,
                     1024,
                     nullptr) && buf) {
-    ss << "Error: " << wCharToUtf8(buf);
+    ss << "Error: " << wCharToUtf8(buf) << "(" << std::hex << status_ <<  ")";
     LocalFree(buf);
   }
   else {