Permalink
Browse files

Added failure when skin files can not be located

  • Loading branch information...
davglass committed Sep 5, 2012
1 parent 308babe commit 8248ede3c81fd3a9c11a3c31f996103b221b92ed
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/module.js
View
@@ -442,7 +442,13 @@ var buildSkin = function (mod, name, callback) {
.check()
.log('writing skin file with core wrapper')
.write(path.join(buildDir, name, 'assets', 'skins', skinName, name + '.css'))
- .run(stack.add(function () {
+ .run(stack.add(function (err) {
+ if (err) {
+ log.err(err);
+ if (err.code === 'ENOENT') {
+ log.error('skin file is missing: ' + err.path);
+ }
+ }
//Write the skin file without core
var Rqueue = new Queue({

0 comments on commit 8248ede

Please sign in to comment.