зеркало из https://github.com/mozilla/gecko-dev.git
Bug 463122 - Improve xpcshell error reporting for generic exceptions caught at the top level. r=ted
This commit is contained in:
Родитель
d9f302116b
Коммит
0de1d98af2
|
@ -334,7 +334,16 @@ function _execute_test() {
|
||||||
// possible that this will mask an NS_ERROR_ABORT that happens after a
|
// possible that this will mask an NS_ERROR_ABORT that happens after a
|
||||||
// do_check failure though.
|
// do_check failure though.
|
||||||
if (!_quit || e != Components.results.NS_ERROR_ABORT) {
|
if (!_quit || e != Components.results.NS_ERROR_ABORT) {
|
||||||
msg = "TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | " + e;
|
msg = "TEST-UNEXPECTED-FAIL | ";
|
||||||
|
if ('fileName' in e) {
|
||||||
|
msg += e.fileName;
|
||||||
|
if ('lineNumber' in e) {
|
||||||
|
msg += ":" + e.lineNumber;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
msg += "xpcshell/head.js";
|
||||||
|
}
|
||||||
|
msg += " | " + e;
|
||||||
if (e.stack) {
|
if (e.stack) {
|
||||||
_dump(msg + " - See following stack:\n");
|
_dump(msg + " - See following stack:\n");
|
||||||
_dump_exception_stack(e.stack);
|
_dump_exception_stack(e.stack);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче