Bug 1083068 - Improve SDK logging when a promise is rejected during tests. r=gozala

This commit is contained in:
Alexandre Poirot 2014-10-15 01:11:00 -04:00
parent 4fe293ed6b
commit 958475419a

View File

@ -62,7 +62,8 @@ TestRunner.prototype = {
},
_uncaughtErrorObserver: function({message, date, fileName, stack, lineNumber}) {
this.fail("There was an uncaught Promise rejection: " + stack);
this.fail("There was an uncaught Promise rejection: " + message + " @ " +
fileName + ":" + lineNumber + "\n" + stack);
},
pass: function pass(message) {