mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:32:45 +08:00
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:
parent
23ed5e0851
commit
41f1c70fe4
|
@ -20,7 +20,7 @@
|
||||||
console.log(e.message);
|
console.log(e.message);
|
||||||
console.log(e.stack);
|
console.log(e.stack);
|
||||||
} else {
|
} else {
|
||||||
console.log("Uncaught promise: " + e.toString());
|
console.log("Uncaught promise: ", e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("A promise failed but was not caught.");
|
console.log("A promise failed but was not caught.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user