diff options
author | isaacs <i@izs.me> | 2010-08-26 07:00:17 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-26 07:00:17 +0400 |
commit | 033cf742230ce4c76d7a3cc5528ae41e34cfd0fc (patch) | |
tree | 76e49f14788fa61c0f0815966d120148ba093322 | |
parent | fcd9f2b5bfaaf00b0128310064f3da524d12a4b9 (diff) |
Log an error about configs if tar or gzip don't work.
-rw-r--r-- | lib/cache.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js index 20c759a9e..ac6f10e68 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -215,7 +215,9 @@ function unpackTar (tarball, unpackTarget, cb) { , spawn( npm.config.get("tar") , ["vx", "--strip-components=1", "-C", unpackTarget] ) - , cb + , log.er(cb, "Failed unpacking the tarball.\n" + + "This is very rare. Perhaps the 'gzip' or 'tar' configs\n" + + "are set improperly?\n") ) }) } @@ -229,6 +231,9 @@ function packTar (targetTarball, folder, cb) { , ignore = path.join(folder, ".npmignore") , defaultIgnore = path.join(__dirname, "utils", "default.npmignore") , include = path.join(folder, ".npminclude") + cb = log.er(cb, "Failed unpacking the tarball.\n" + + "This is very rare. Perhaps the 'gzip' or 'tar' configs\n" + + "are set improperly?\n") fs.stat(ignore, function (er) { if (er) ignore = defaultIgnore |