Created
August 29, 2016 09:56
-
-
Save igstan/c58619864e5e4c2f875fa18a53d5d334 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
function required(name) { | |
return process.env[name] || ( | |
console.error('Missing required environment variable:', name), // <-- this | |
process.exit(1) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment