From bfef92f8b00ce993d0d884b8e6b8904e6aaed767 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Wed, 21 Sep 2016 12:30:21 -0500 Subject: [PATCH] Make the absence of source/_data/listitems.json a warning instead of an error closes #475 --- core/lib/patternlab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/patternlab.js b/core/lib/patternlab.js index cafd77b71..961d89103 100644 --- a/core/lib/patternlab.js +++ b/core/lib/patternlab.js @@ -245,7 +245,7 @@ var patternlab_engine = function (config) { try { patternlab.listitems = fs.readJSONSync(path.resolve(paths.source.data, 'listitems.json')); } catch (ex) { - plutils.logRed('missing or malformed' + paths.source.data + 'listitems.json Pattern Lab may not work without this file.'); + plutils.logOrange('WARNING: missing or malformed ' + paths.source.data + 'listitems.json file. Pattern Lab may not work without this file.'); patternlab.listitems = {}; } try {