From 41f1c70fe426eb777a077ddf32a4adefc2e46a51 Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Fri, 9 May 2014 11:16:56 +0200 Subject: [PATCH] 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 --- app/views/common/_discourse_javascript.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index 41f259dea2a..703d478e615 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -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.");