Created
November 11, 2017 09:01
-
-
Save vitkarpov/82950202a2eabda47b6d7caaff84dbf4 to your computer and use it in GitHub Desktop.
The right way to distinguish errors
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
if (err.code === 'ERR_HTTP_HEADERS_SENT') { | |
//do something with the error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment