diff options
Diffstat (limited to 'lib/cache.js')
-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 |