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 81ec3dcf99
commit 7cb9870df6

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) {