Explorar o código

WinTLS: Improve error reporting

Nils Maier %!s(int64=11) %!d(string=hai) anos
pai
achega
39d66bd560
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {