зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1309799 - Make error message more stable. r=billm
MozReview-Commit-ID: IzhAfo7eYCC --HG-- extra : rebase_source : 8c0fffd9dd6b10b48cb14f9393f7eb564322d42b
This commit is contained in:
Родитель
4364802eff
Коммит
2b9f62525d
|
@ -2037,8 +2037,12 @@ MessageChannel::MaybeHandleError(Result code, const Message& aMsg, const char* c
|
|||
}
|
||||
|
||||
char reason[512];
|
||||
SprintfLiteral(reason,"(msgtype=0x%X,name=%s) %s",
|
||||
aMsg.type(), StringFromIPCMessageType(aMsg.type()), errorMsg);
|
||||
const char* msgname = StringFromIPCMessageType(aMsg.type());
|
||||
if (msgname[0] == '?') {
|
||||
SprintfLiteral(reason,"(msgtype=0x%X) %s", aMsg.type(), errorMsg);
|
||||
} else {
|
||||
SprintfLiteral(reason,"%s %s", msgname, errorMsg);
|
||||
}
|
||||
|
||||
PrintErrorMessage(mSide, channelName, reason);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче