mirror of https://github.com/embarklabs/embark.git
add err arg
This commit is contained in:
parent
510bc2c542
commit
e88b51bdfd
|
@ -17,7 +17,7 @@ class Npm {
|
|||
let self = this;
|
||||
let npmRegistry = "https://registry.npmjs.org/" + packageName + "/" + version;
|
||||
|
||||
utils.httpsGet(npmRegistry, function (body) {
|
||||
utils.httpsGet(npmRegistry, function (_err, body) {
|
||||
let registryJSON = JSON.parse(body);
|
||||
|
||||
let tarball = registryJSON.dist.tarball;
|
||||
|
|
|
@ -43,7 +43,7 @@ function httpsGet(url, callback) {
|
|||
body += d;
|
||||
});
|
||||
res.on('end', function () {
|
||||
callback(body);
|
||||
callback(null, body);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue