Commit 1e1d86f0 authored by Jérome Perrin's avatar Jérome Perrin

GUI: display error stack trace in error page

parent 1607ed73
......@@ -39,6 +39,8 @@
<a href="javascript: location.reload()">Click here to reload the page</a><br/>
The error detail is:
<pre>{{error}}</pre>
<br/>Stack Trace is:
<pre>{{error_stack}}</pre>
</script>
</head>
......
......@@ -436,7 +436,7 @@
}
console.error(error.stack);
document.querySelector("article[class='gadget_container']")
.innerHTML = error_template({ error: error });
.innerHTML = error_template({ error: error, error_stack: error.stack});
});
});
}(window, jQuery, rJS, RSVP, Handlebars, initGadgetMixin));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment