Skip to content

Commit ebffdb9

Browse files
committedJan 30, 2014
spec/index: improve error reporting
1 parent c2cd547 commit ebffdb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎index.html.erb

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
window.onerror = function(msg, url, line) {
88
var error = document.createElement("div");
99
error.setAttribute("id", "rspec-error");
10-
error.innerHTML = "Error: " + msg + "<br/>";
11-
error.innerHTML += "Line: " + line + "<br/>";
12-
error.innerHTML += "URL: " + url + "<br/>";
10+
error.appendChild(document.createTextNode(msg));
1311

1412
document.body.appendChild(error);
1513
}

0 commit comments

Comments
 (0)
Please sign in to comment.