Merge pull request #132 from clarkbw/better-debug

use a new variable for better debug output
This commit is contained in:
Raymond Feng 2015-05-29 10:14:50 -07:00
commit bd4c2fc968
1 changed files with 3 additions and 3 deletions

View File

@ -689,12 +689,12 @@ function buildAllMixinInstructions(appRootDir, mixinDirs, mixinSources, options,
function findMixinDefinitions(appRootDir, sourceDirs, extensions) {
var files = [];
sourceDirs.forEach(function(dir) {
dir = tryResolveAppPath(appRootDir, dir);
if (!dir) {
var path = tryResolveAppPath(appRootDir, dir);
if (!path) {
debug('Skipping unknown module source dir %j', dir);
return;
}
files = files.concat(findScripts(dir, extensions));
files = files.concat(findScripts(path, extensions));
});
return files;
}