Skip to content

Commit

Permalink
more informative error messages if --hub not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Apr 12, 2012
1 parent 4c6bbb5 commit 62afaaa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/deploy.js
Expand Up @@ -3,6 +3,7 @@ var propagit = require('propagit');

var git = require('../lib/git');
var argv = require('../lib/argv');
if (!argv.hub) return console.error('Specify a --hub or set a remote.');

var p = propagit(argv);
p.on('error', function (err) {
Expand Down
2 changes: 2 additions & 0 deletions bin/exec.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node
var argv = require('../lib/argv');
if (!argv.hub) return console.error('Specify a --hub or set a remote.');

var propagit = require('propagit');
var git = require('../lib/git');

Expand Down
2 changes: 2 additions & 0 deletions bin/monitor.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node
var argv = require('../lib/argv');
if (!argv.hub) return console.error('Specify a --hub or set a remote.');

var propagit = require('propagit');
var EventEmitter = require('events').EventEmitter;

Expand Down
1 change: 1 addition & 0 deletions bin/ps.js
Expand Up @@ -5,6 +5,7 @@ var propagit = require('propagit');
var archy = require('archy');

var argv = require('../lib/argv');
if (!argv.hub) return console.error('Specify a --hub or set a remote.');

var p = propagit(argv);
p.on('error', function (err) {
Expand Down
2 changes: 2 additions & 0 deletions bin/spawn.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node
var argv = require('../lib/argv');
if (!argv.hub) return console.error('Specify a --hub or set a remote.');

var propagit = require('propagit');
var git = require('../lib/git');

Expand Down
2 changes: 2 additions & 0 deletions bin/stop.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node
var argv = require('../lib/argv');
if (!argv.hub) return console.error('Specify a --hub or set a remote.');

var propagit = require('propagit');
var git = require('../lib/git');

Expand Down

0 comments on commit 62afaaa

Please sign in to comment.