You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/01/16 19:30:50 UTC

git commit: Add a verbose log when running update command

Updated Branches:
  refs/heads/master abc993d5d -> bacdf8f3e


Add a verbose log when running update command


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

Branch: refs/heads/master
Commit: bacdf8f3e25def8005ee0e6e0ec60e0e67a71325
Parents: abc993d
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Jan 16 13:30:42 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Jan 16 13:30:42 2014 -0500

----------------------------------------------------------------------
 src/platform.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/bacdf8f3/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index 1e14c99..b6a9613 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -132,7 +132,9 @@ module.exports = function platform(command, targets) {
                     // Call the platform's update script.
                     var script = path.join(libDir, 'bin', 'update');
                     var d = Q.defer();
-                    child_process.exec(script + ' "' + platformPath + '"', function(err, stdout, stderr) {
+                    var cmd = script + ' "' + platformPath + '"';
+                    events.emit('verbose', 'Running command:' + cmd);
+                    child_process.exec(cmd, function(err, stdout, stderr) {
                         if (err) {
                             d.reject(new Error('Update script failed: ' + err + stderr));
                         } else {