From 0d59642e64e9341b3ac73ede4cfb0e4ba2980faa Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Thu, 9 Apr 2020 16:41:52 +0300 Subject: [PATCH] fix: pass prettyErrors to yaml when parsing config (#3571) --- packages/netlify-cms-core/src/actions/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/src/actions/config.js b/packages/netlify-cms-core/src/actions/config.js index 21f8773f..bdf2e98c 100644 --- a/packages/netlify-cms-core/src/actions/config.js +++ b/packages/netlify-cms-core/src/actions/config.js @@ -119,7 +119,7 @@ function mergePreloadedConfig(preloadedConfig, loadedConfig) { } 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]) { Object.keys(config[CMS_ENV]).forEach(key => { config[key] = config[CMS_ENV][key];