mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 463122 - Improve xpcshell error reporting for generic exceptions caught at the top level. r=ted
This commit is contained in:
parent
a18ebbe4ab
commit
87431d5a97
@ -334,7 +334,16 @@ function _execute_test() {
|
||||
// possible that this will mask an NS_ERROR_ABORT that happens after a
|
||||
// do_check failure though.
|
||||
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) {
|
||||
_dump(msg + " - See following stack:\n");
|
||||
_dump_exception_stack(e.stack);
|
||||
|
Loading…
Reference in New Issue
Block a user