Log the actual promise object instead of a useless name

- console.log has support for objects including introspection, use this
 - instead of logging useless names
This commit is contained in:
Benjamin Kampmann 2014-05-09 11:16:56 +02:00
parent 23ed5e0851
commit 41f1c70fe4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
console.log(e.message);
console.log(e.stack);
} else {
console.log("Uncaught promise: " + e.toString());
console.log("Uncaught promise: ", e);
}
} else {
console.log("A promise failed but was not caught.");