Last active
August 29, 2015 14:01
-
-
Save kentcdodds/7dcdfc9de2983b11b4db to your computer and use it in GitHub Desktop.
Will print out the full error message when it's been omitted
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.onerror = function (errorMsg, url, lineNumber, columnNumber, errorObject) { | |
if (/<omitted>/.test(errorMsg)) { | |
console.error('Error: ' + errorObject ? errorObject.message : errorMsg); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment