diff --git a/static/debug.html b/static/debug.html
index 75891f198..b39c2610d 100644
--- a/static/debug.html
+++ b/static/debug.html
@@ -36,7 +36,12 @@
window.console.log(msg + result.suite.join(' ') + ' ' + result.description);
for (var i = 0; i < result.log.length; i++) {
- window.console.error(result.log[i]);
+ //throwing error without loosing stack trace
+ (function (err) {
+ setTimeout(function() {
+ throw err;
+ });
+ })(result.log[i])
}
} : function() {},
loaded: function() {