[ui] improve error reporting for download issues

* This is part of #1444
This commit is contained in:
Pete Batard 2020-02-03 12:35:49 +00:00
parent b8b22ee890
commit 87a7228d38
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 38 additions and 16 deletions

View file

@ -766,6 +766,8 @@ const char* _StrError(DWORD error_code)
return lmprintf(MSG_079);
case ERROR_BAD_SIGNATURE:
return lmprintf(MSG_172);
case ERROR_CANT_DOWNLOAD:
return lmprintf(MSG_242);
default:
SetLastError(error_code);
return WindowsErrorString();