Print maip error on OpenProperty error
authorAndre Heinecke <aheinecke@gnupg.org>
Tue, 9 Apr 2019 12:42:20 +0000 (14:42 +0200)
committerAndre Heinecke <aheinecke@gnupg.org>
Tue, 9 Apr 2019 12:42:20 +0000 (14:42 +0200)
* src/oomhelp.cpp (gpgol_openProperty): Print out mapi error.

--
This saves time looking up the error codes manually.

src/oomhelp.cpp

index 9645602..e7be38b 100644 (file)
@@ -64,8 +64,8 @@ gpgol_openProperty (LPMAPIPROP obj, ULONG ulPropTag, LPCIID lpiid,
                                    lppUnk);
   if (ret)
     {
-      log_debug ("%s:%s: OpenProperty failed hr=%#lx",
-                 SRCNAME, __func__, ret);
+      log_debug ("%s:%s: OpenProperty failed hr=%#lx %s",
+                 SRCNAME, __func__, ret, mapi_err_to_string (ret));
     }
   else if ((opt.enable_debug & DBG_MEMORY) && *lppUnk)
     {