Tweak error message when hooks fail (wasn't showing correct 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/6e560aec Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/6e560aec Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/6e560aec Branch: refs/heads/master Commit: 6e560aec86fc3165b616c923ce711708eb4962c6 Parents: 79e5719 Author: Andrew Grieve <[email protected]> Authored: Fri Mar 21 16:43:21 2014 -0700 Committer: Andrew Grieve <[email protected]> Committed: Fri Mar 21 16:47:11 2014 -0700 ---------------------------------------------------------------------- src/hooker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/6e560aec/src/hooker.js ---------------------------------------------------------------------- diff --git a/src/hooker.js b/src/hooker.js index fceda84..58e156b 100644 --- a/src/hooker.js +++ b/src/hooker.js @@ -137,7 +137,7 @@ function execute_scripts_serially(scripts, root, dir, opts) { if (!isWindows && err.code == 'EACCES') { events.emit('verbose', 'skipped non-executable file: ' + fullpath); } else { - throw new CordovaError('Hook failed with error code ' + err.code + ': ' + command); + throw new CordovaError('Hook failed with error code ' + err.code + ': ' + fullpath); } }).then(function() { return execute_scripts_serially(scripts, root, dir, opts);
