diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-10-21 15:51:43 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:59:20 +0300 |
commit | 8796f25994b03533fff334f35a297fc293f81575 (patch) | |
tree | 33a6b36401bc1d1c93557d648a416ba362165894 /src/common | |
parent | 44175aca94fb770c0e17ce0261bd4f7d1d15f4c5 (diff) |
Log error code as hex
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/utility_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |