Created
November 11, 2017 08:56
-
-
Save vitkarpov/cdc10f0ed0c3e26560538fdf41a79364 to your computer and use it in GitHub Desktop.
Don't do this anymore, there're erorrs' codes since Node.js 9.0.0
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.message === 'Can\'t set headers after they are sent.') { | |
//do something with the error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment