зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1281702: Report the actual error message, rather than a generic one from the graphics logger. r=mchang
MozReview-Commit-ID: BT4FjWJ03wF --HG-- extra : rebase_source : 71fa23c8e3a0e346779a7618036d1408393de3d5
This commit is contained in:
Родитель
dcb94873b1
Коммит
e22300de9e
|
@ -501,9 +501,14 @@ private:
|
|||
void WriteLog(const std::string &aString) {
|
||||
if (MOZ_UNLIKELY(LogIt())) {
|
||||
Logger::OutputMessage(aString, L, NoNewline());
|
||||
// Assert if required. We don't have a three parameter MOZ_ASSERT
|
||||
// so use the underlying functions instead (see bug 1281702):
|
||||
#ifdef DEBUG
|
||||
if (mOptions & int(LogOptions::AssertOnCall)) {
|
||||
MOZ_ASSERT(false, "An assert from the graphics logger");
|
||||
MOZ_ReportAssertionFailure(aString.c_str(), __FILE__, __LINE__);
|
||||
MOZ_CRASH("GFX: An assert from the graphics logger");
|
||||
}
|
||||
#endif
|
||||
if ((mOptions & int(LogOptions::CrashAction)) && ValidReason()) {
|
||||
Logger::CrashAction(mReason);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче