зеркало из https://github.com/mozilla/pjs.git
add error code to unknown error alert for diagnosis purposes r=sspitzer, sr=mscott 57057
This commit is contained in:
Родитель
ec5e79e673
Коммит
237ec4bc25
|
@ -246,7 +246,7 @@ NS_IMETHODIMP nsMsgProtocol::OnStopRequest(nsIChannel * aChannel, nsISupports *c
|
|||
GetPromptDialogFromUrl(msgUrl , getter_AddRefs(msgPrompt));
|
||||
NS_ENSURE_TRUE(msgPrompt, NS_ERROR_FAILURE);
|
||||
|
||||
nsAutoString alertMsg; alertMsg.AssignWithConversion("unknown error.");
|
||||
nsAutoString alertMsg; alertMsg.AssignWithConversion("unknown error ");
|
||||
switch (aStatus)
|
||||
{
|
||||
case NS_ERROR_UNKNOWN_HOST:
|
||||
|
@ -261,8 +261,9 @@ NS_IMETHODIMP nsMsgProtocol::OnStopRequest(nsIChannel * aChannel, nsISupports *c
|
|||
// todo, put this into a string bundle
|
||||
alertMsg.AssignWithConversion("Connection to the server timed out.");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
default:
|
||||
alertMsg.AppendInt(aStatus, 16);
|
||||
break;
|
||||
}
|
||||
|
||||
rv = msgPrompt->Alert(nsnull, alertMsg.GetUnicode());
|
||||
|
|
Загрузка…
Ссылка в новой задаче