mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 926635 - Improve layout of uncaught Promise.jsm error messages. r=Yoric
This commit is contained in:
parent
a584ba78d8
commit
354ad24d81
@ -220,11 +220,11 @@ Services.obs.addObserver(function observe(aSubject, aTopic, aValue) {
|
||||
return;
|
||||
}
|
||||
if (stack) {
|
||||
message += " at " + stack;
|
||||
message += "\nFull Stack: " + stack;
|
||||
}
|
||||
error.init(
|
||||
/*message*/"A promise chain failed to handle a rejection: on " +
|
||||
date + ", " + message,
|
||||
/*message*/"A promise chain failed to handle a rejection.\n\n" +
|
||||
"Date: " + date + "\nFull Message: " + message,
|
||||
/*sourceName*/ fileName,
|
||||
/*sourceLine*/ lineNumber?("" + lineNumber):0,
|
||||
/*lineNumber*/ lineNumber || 0,
|
||||
|
Loading…
Reference in New Issue
Block a user