Last active
August 29, 2015 14:28
Revisions
-
guisouza revised this gist
Aug 24, 2015 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ 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;'); }) -
guisouza created this gist
Aug 24, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ window.onerror = function(){ var file = arguments[1] var line = arguments[2] var collumn = arguments[3] var searchUrl = encodeURIComponent(arguments[0]) 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;'); }