Last active
August 29, 2015 14:28
-
-
Save guisouza/83b415f898b9bd60f080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('error', function(e) { | |
var file = e.filename | |
var line = e.lineno | |
var collumn = e.colno | |
var searchUrl = encodeURIComponent(e.error.message) | |
console.log('Ocorreu um erro no arquivo',file,'na linha',line,':',collumn) | |
console.log('Para buscar o erro, acesso o link :','http://stackoverflow.com/search?q='+searchUrl ) | |
console.log('Powered By :') | |
console.log('%c', 'padding:28px 119px;line-height:100px;background:url(http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=6) no-repeat;'); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment