Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-02-27 08:26:35 +0300
committerisaacs <i@izs.me>2010-02-27 09:04:06 +0300
commitb81e2204ecddfb848524b49ad61c84d9e9a23f88 (patch)
treed1fafe6a086d17a7eab5d4d75638139b8aa69f92 /cli.js
parent973dfad354ac79b8f2ed84c1e722bd35ba85bc59 (diff)
Throw errors that bubble up to the cli.
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli.js b/cli.js
index c84b47de1..2cd4fa33c 100755
--- a/cli.js
+++ b/cli.js
@@ -58,5 +58,6 @@ function usage () {
var result = npm[command].apply(npm, argv.concat(function (er, ok) {
if (er) {
log("failed " + er.message);
+ throw er;
} else log("ok");
}));