Log error code as hex
authorHannah von Reth <hannah.vonreth@owncloud.com>
Wed, 21 Oct 2020 12:51:43 +0000 (14:51 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:20 +0000 (10:59 +0100)
src/common/utility_win.cpp

index 72b66875e5aa29cf6be5510b71bcdfcc342eeab8..7c2f68ee76e11b9a990946fca4a96e9da7d3ea3f 100644 (file)
@@ -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