pacote
Advanced tools
Comparing version 2.7.32 to 2.7.33
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.7.33"></a> | ||
## [2.7.33](https://github.com/zkat/pacote/compare/v2.7.32...v2.7.33) (2017-06-08) | ||
### Bug Fixes | ||
* **git:** better error reporting when ls-remote fails ([10aae8f](https://github.com/zkat/pacote/commit/10aae8f)) | ||
<a name="2.7.32"></a> | ||
@@ -7,0 +17,0 @@ ## [2.7.32](https://github.com/zkat/pacote/compare/v2.7.31...v2.7.32) (2017-06-07) |
@@ -112,4 +112,9 @@ 'use strict' | ||
let stdout = '' | ||
let stderr = '' | ||
child.stdout.on('data', d => { stdout += d }) | ||
return finished(child).then(() => { | ||
child.stderr.on('data', d => { stderr += d }) | ||
return finished(child).catch(err => { | ||
err.message = `Error while executing:\n${GITPATH} ls-remote -h -t ${repo}\n\n${stderr}\n${err.message}` | ||
throw err | ||
}).then(() => { | ||
return stdout.split('\n').reduce((revs, line) => { | ||
@@ -116,0 +121,0 @@ const split = line.split(/\s+/, 2) |
{ | ||
"name": "pacote", | ||
"version": "2.7.32", | ||
"version": "2.7.33", | ||
"description": "JavaScript package downloader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
82383
1554