mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 738457 - useful error message for MD5 certs, general fallback to NSS's default (english) error message, r=wtc
This commit is contained in:
parent
26b832feb9
commit
2c4461eba2
@ -98,7 +98,18 @@ nsNSSErrors::getErrorMessageFromCode(PRErrorCode err,
|
||||
returnedMessage.Append(defMsg);
|
||||
returnedMessage.Append(NS_LITERAL_STRING("\n"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (returnedMessage.IsEmpty())
|
||||
{
|
||||
// no localized string available, use NSS' internal
|
||||
returnedMessage.AppendASCII(PR_ErrorToString(err, PR_LANGUAGE_EN));
|
||||
returnedMessage.Append(NS_LITERAL_STRING("\n"));
|
||||
}
|
||||
|
||||
if (nss_error_id_str)
|
||||
{
|
||||
nsresult rv;
|
||||
nsCString error_id(nss_error_id_str);
|
||||
ToLowerCase(error_id);
|
||||
NS_ConvertASCIItoUTF16 idU(error_id);
|
||||
|
Loading…
Reference in New Issue
Block a user