From: Hannah von Reth Date: Wed, 21 Oct 2020 12:51:43 +0000 (+0200) Subject: Log error code as hex X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~52 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8796f25994b03533fff334f35a297fc293f81575;p=nextcloud-desktop.git Log error code as hex --- diff --git a/src/common/utility_win.cpp b/src/common/utility_win.cpp index 72b66875e..7c2f68ee7 100644 --- a/src/common/utility_win.cpp +++ b/src/common/utility_win.cpp @@ -341,7 +341,7 @@ void Utility::UnixTimeToLargeIntegerFiletime(time_t t, LARGE_INTEGER *hundredNSe QString Utility::formatWinError(long errorCode) { - return QStringLiteral("WindowsError: %1: %2").arg(QString::number(errorCode), QString::fromWCharArray(_com_error(errorCode).ErrorMessage())); + return QStringLiteral("WindowsError: %1: %2").arg(QString::number(errorCode, 16), QString::fromWCharArray(_com_error(errorCode).ErrorMessage())); } } // namespace OCC