add error code to unknown error alert for diagnosis purposes r=sspitzer, sr=mscott 57057
git-svn-id: svn://10.0.0.236/trunk@85491 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user