Created
May 10, 2018 12:37
-
-
Save eliihen/92a91c989c62b7d8d21e44eae917b890 to your computer and use it in GitHub Desktop.
This file contains 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
const originalConsoleError = console.error; | |
console.error = message => { | |
if (/(Failed prop type)/.test(message)) { | |
throw new Error(message); | |
} | |
originalConsoleError(message); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment