Ver código fonte

WinTLS: Improve error reporting

Nils Maier 11 anos atrás
pai
commit
39d66bd560
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/WinTLSSession.cc

+ 1 - 1
src/WinTLSSession.cc

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