mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 08:59:57 -04:00
Merge pull request #2328 from ligthyear/better-debugging-of-promises-in-dev
Log the actual promise object instead of a useless name
This commit is contained in:
commit
978fb7ff96
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue