Skip to content
Browse files

Showing line numbers on JS errors

  • Loading branch information...
1 parent de2b3ea commit dc60a3e625f3cae262995faa4296a98104a62f0f @nathansobo nathansobo committed Jun 13, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/screw.events.js
View
4 lib/screw.events.js
@@ -27,6 +27,10 @@
$(this)
.addClass('failed')
.append($('<p class="error">').text(reason.toString()));
+ if (reason.fileName || reason.lineNumber) {
+ $(this)
+ .append($('<p class="error">').text(reason.fileName + " : " + reason.lineNumber));
+ }
})
})
.bind('before', function() {

0 comments on commit dc60a3e

Please sign in to comment.
Something went wrong with that request. Please try again.