Exiting when users try to use --watch and fs.watch is undefined

This commit is contained in:
Trevor Burnham
2011-12-19 11:23:27 -05:00
parent 9de0d886eb
commit cfb9cb6fe9
2 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@
if (opts.require) loadRequires();
if (opts.interactive) return require('./repl');
if (opts.watch && !fs.watch) {
printWarn("The --watch feature depends on Node v0.6.0+. You are running " + process.version + ".");
return printWarn("The --watch feature depends on Node v0.6.0+. You are running " + process.version + ".");
}
if (opts.stdio) return compileStdio();
if (opts.eval) return compileScript(null, sources[0]);