Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more informative error messages if --hub not specified

  • Loading branch information...
commit 62afaaa06657f8b64eb7a87dd3319df3f2aab22d 1 parent 4c6bbb5
@substack authored
View
1  bin/deploy.js
@@ -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) {
View
2  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');
View
2  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;
View
1  bin/ps.js
@@ -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) {
View
2  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');
View
2  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');
Please sign in to comment.
Something went wrong with that request. Please try again.