Skip to content

Commit

Permalink
Refer to tasks.js in file not found errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Oct 26, 2012
1 parent 2ba2a21 commit d598490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/rivet.js
Expand Up @@ -16,12 +16,12 @@ if (argv.help) {
optimist.showHelp();
} else if (argv.tasks) {
var file = rivet.utils.findupSync(process.cwd(), argv.file);
if (!file) { return console.error('No "rivet.js" file found'); }
if (!file) { return console.error('No "tasks.js" file found'); }
process.chdir(path.dirname(file));
rivet.cli.tasks(file, argv);
} else {
var file = rivet.utils.findupSync(process.cwd(), argv.file);
if (!file) { return console.error('No "rivet.js" file found'); }
if (!file) { return console.error('No "tasks.js" file found'); }
process.chdir(path.dirname(file));
rivet.cli.exec(file, argv._.length ? argv._ : [ 'default' ], argv);
}

0 comments on commit d598490

Please sign in to comment.