1- /*
2- * patternlab-node - v2.0.0-alpha.3 - 2016
3- *
1+ /*
2+ * patternlab-node - v2.0.0 - 2016
3+ *
44 * Brian Muenzenmeyer, Geoff Pursell, and the web community.
5- * Licensed under the MIT license.
6- *
7- * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
5+ * Licensed under the MIT license.
6+ *
7+ * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
88 *
99 */
1010
@@ -186,13 +186,13 @@ var patternlab_engine = function (config) {
186186 try {
187187 patternlab . data = fs . readJSONSync ( path . resolve ( paths . source . data , 'data.json' ) ) ;
188188 } catch ( ex ) {
189- console . log ( 'missing ' + paths . source . data + 'data.json Pattern Lab may not work without this file.' ) ;
189+ plutils . logRed ( 'missing or malformed ' + paths . source . data + 'data.json Pattern Lab may not work without this file.' ) ;
190190 patternlab . data = { } ;
191191 }
192192 try {
193193 patternlab . listitems = fs . readJSONSync ( path . resolve ( paths . source . data , 'listitems.json' ) ) ;
194194 } catch ( ex ) {
195- console . log ( 'missing ' + paths . source . data + 'listitems.json Pattern Lab may not work without this file.' ) ;
195+ plutils . logRed ( 'missing or malformed ' + paths . source . data + 'listitems.json Pattern Lab may not work without this file.' ) ;
196196 patternlab . listitems = { } ;
197197 }
198198 try {
@@ -203,7 +203,7 @@ var patternlab_engine = function (config) {
203203 patternlab . viewAll = fs . readFileSync ( path . resolve ( paths . source . patternlabFiles , 'viewall.mustache' ) , 'utf8' ) ;
204204 } catch ( ex ) {
205205 console . log ( ex ) ;
206- console . log ( '\nERROR: missing an essential file from ' + paths . source . patternlabFiles + '. Pattern Lab won\'t work without this file.\n' ) ;
206+ plutils . logRed ( '\nERROR: missing an essential file from ' + paths . source . patternlabFiles + '. Pattern Lab won\'t work without this file.\n' ) ;
207207 process . exit ( 1 ) ;
208208 }
209209 patternlab . patterns = [ ] ;
0 commit comments