fix: pass prettyErrors to yaml when parsing config (#3571)

This commit is contained in:
Erez Rokah 2020-04-09 16:41:52 +03:00 committed by GitHub
parent 1d88b15de5
commit 0d59642e64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ function mergePreloadedConfig(preloadedConfig, loadedConfig) {
} }
function parseConfig(data) { function parseConfig(data) {
const config = yaml.parse(data, { maxAliasCount: -1 }); const config = yaml.parse(data, { maxAliasCount: -1, prettyErrors: true });
if (typeof CMS_ENV === 'string' && config[CMS_ENV]) { if (typeof CMS_ENV === 'string' && config[CMS_ENV]) {
Object.keys(config[CMS_ENV]).forEach(key => { Object.keys(config[CMS_ENV]).forEach(key => {
config[key] = config[CMS_ENV][key]; config[key] = config[CMS_ENV][key];