Log error message from CFAPI
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Fri, 26 Feb 2021 11:13:53 +0000 (12:13 +0100)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Sat, 27 Feb 2021 17:44:26 +0000 (17:44 +0000)
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
src/libsync/vfs/cfapi/cfapiwrapper.cpp

index b57e8a593672a5a81e2af13775a31aef8f078b36..52b9bfd31e1eace0fa6ec455287acc4f196b9f15 100644 (file)
@@ -53,7 +53,7 @@ void cfApiSendTransferInfo(const CF_CONNECTION_KEY &connectionKey, const CF_TRAN
 
     const qint64 result = CfExecute(&opInfo, &opParams);
     if (result != S_OK) {
-        qCCritical(lcCfApiWrapper) << "Couldn't send transfer info" << QString::number(transferKey.QuadPart, 16) << ":" << _com_error(result).ErrorMessage();
+        qCCritical(lcCfApiWrapper) << "Couldn't send transfer info" << QString::number(transferKey.QuadPart, 16) << ":" << result << QString::fromWCharArray(_com_error(result).ErrorMessage());
     }
 }