diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index 05cbaab6e84..10174348ffb 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.");