-
-
Save AllGistsEqual/42e2b5e21c63f031c446459f93df6790 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
// File: src/index.js | |
/* [BETA] | |
* Load the config file from the directory | |
*/ | |
this.log.info(`Loading config...`) | |
try { | |
this.config = JSON.parse(fs.readFileSync(this.configFile)) | |
} catch (err) { | |
this.log.error(`Error reading config: ${err.message}`) | |
this.log.error( | |
'Please fix the config error or delete config.json so it can be regenerated.', | |
) | |
throw err | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment