Skip to content

Commit

Permalink
spec/index: improve error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jan 30, 2014
1 parent c2cd547 commit ebffdb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
window.onerror = function(msg, url, line) {
var error = document.createElement("div");
error.setAttribute("id", "rspec-error");
error.innerHTML = "Error: " + msg + "<br/>";
error.innerHTML += "Line: " + line + "<br/>";
error.innerHTML += "URL: " + url + "<br/>";
error.appendChild(document.createTextNode(msg));

document.body.appendChild(error);
}
Expand Down

0 comments on commit ebffdb9

Please sign in to comment.