зеркало из https://github.com/mozilla/gecko-dev.git
Bug 566054: Add missing error message case, tighten up UNREACHED guard. r=bent
This commit is contained in:
Родитель
442091e52f
Коммит
5f15efa473
|
@ -413,12 +413,14 @@ AsyncChannel::ReportConnectionError(const char* channelName) const
|
|||
break;
|
||||
case ChannelTimeout:
|
||||
errorMsg = "Channel timeout: cannot send/recv";
|
||||
case ChannelClosing:
|
||||
errorMsg = "Channel closing: too late to send/recv, messages will be lost";
|
||||
case ChannelError:
|
||||
errorMsg = "Channel error: cannot send/recv";
|
||||
break;
|
||||
|
||||
default:
|
||||
NOTREACHED();
|
||||
NS_RUNTIMEABORT("unreached");
|
||||
}
|
||||
|
||||
PrintErrorMessage(channelName, errorMsg);
|
||||
|
|
Загрузка…
Ссылка в новой задаче