fix millstone availability logic

This commit is contained in:
Dane Springmeyer 2011-08-05 12:33:39 -07:00
parent e62d4ea877
commit 86bf8cc1dc

View File

@ -63,13 +63,12 @@ try {
process.exit(1); process.exit(1);
} }
var millstone = null; var millstone = undefined;
try { try {
require.resolve('millstone'); require.resolve('millstone');
} catch (err) { millstone = require('millstone');
var millstone = require('millstone'); } catch (err) {}
}
if (!millstone) { if (!millstone) {
console.warn('carto: Millstone not found. Externals will not be resolved.'); console.warn('carto: Millstone not found. Externals will not be resolved.');