Bug 926635 - Improve layout of uncaught Promise.jsm error messages. r=Yoric

This commit is contained in:
Tareq Khandaker 2013-10-27 08:03:51 -04:00
parent a584ba78d8
commit 354ad24d81

View File

@ -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,