Skip to content

Commit bfef92f

Browse files
committed
Make the absence of source/_data/listitems.json a warning instead of an error
closes #475
1 parent e82344b commit bfef92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/patternlab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ var patternlab_engine = function (config) {
245245
try {
246246
patternlab.listitems = fs.readJSONSync(path.resolve(paths.source.data, 'listitems.json'));
247247
} catch (ex) {
248-
plutils.logRed('missing or malformed' + paths.source.data + 'listitems.json Pattern Lab may not work without this file.');
248+
plutils.logOrange('WARNING: missing or malformed ' + paths.source.data + 'listitems.json file. Pattern Lab may not work without this file.');
249249
patternlab.listitems = {};
250250
}
251251
try {

0 commit comments

Comments
 (0)