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);
}
var millstone = null;
var millstone = undefined;
try {
require.resolve('millstone');
} catch (err) {
var millstone = require('millstone');
}
millstone = require('millstone');
} catch (err) {}
if (!millstone) {
console.warn('carto: Millstone not found. Externals will not be resolved.');