You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/10/08 02:30:14 UTC

[3/3] git commit: CB-7731 catch obvious missing args error

CB-7731 catch obvious missing args error


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/29457595
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/29457595
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/29457595

Branch: refs/heads/master
Commit: 29457595f997a2900aa2eb9e67fdab6c674b061a
Parents: c92ef05
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Oct 7 17:29:58 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Oct 7 17:29:58 2014 -0700

----------------------------------------------------------------------
 bin/lib/create.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/29457595/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 4faeee5..49733c1 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -30,6 +30,10 @@ module.exports.run = function (argv) {
     // Parse args
     var args = nopt({"guid": String}, {}, argv);
 
+    if(!args.argv.remain.length) {
+        return Q.reject("No path specified.");
+    }
+
     // Set parameters/defaults for create
     var projectPath = args.argv.remain[0];
     if (fs.existsSync(projectPath)){


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org