1
- /*
2
- * patternlab-node - v2.0.0-alpha.3 - 2016
3
- *
1
+ /*
2
+ * patternlab-node - v2.0.0 - 2016
3
+ *
4
4
* 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.
8
8
*
9
9
*/
10
10
@@ -186,13 +186,13 @@ var patternlab_engine = function (config) {
186
186
try {
187
187
patternlab . data = fs . readJSONSync ( path . resolve ( paths . source . data , 'data.json' ) ) ;
188
188
} 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.' ) ;
190
190
patternlab . data = { } ;
191
191
}
192
192
try {
193
193
patternlab . listitems = fs . readJSONSync ( path . resolve ( paths . source . data , 'listitems.json' ) ) ;
194
194
} 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.' ) ;
196
196
patternlab . listitems = { } ;
197
197
}
198
198
try {
@@ -203,7 +203,7 @@ var patternlab_engine = function (config) {
203
203
patternlab . viewAll = fs . readFileSync ( path . resolve ( paths . source . patternlabFiles , 'viewall.mustache' ) , 'utf8' ) ;
204
204
} catch ( ex ) {
205
205
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' ) ;
207
207
process . exit ( 1 ) ;
208
208
}
209
209
patternlab . patterns = [ ] ;
0 commit comments