mirror of https://github.com/embarklabs/embark.git
fix logger call
This commit is contained in:
parent
9d78f995e8
commit
b764ecf4d6
|
@ -14,7 +14,7 @@ class Npm {
|
|||
let gitHead = registryJSON.gitHead;
|
||||
|
||||
if (!gitHead) {
|
||||
console.error("Could not download " + packageName + " " + version);
|
||||
this.logger.error("Could not download " + packageName + " " + version);
|
||||
return callback("error");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class Npm {
|
|||
}
|
||||
} else {
|
||||
fs.mkdirpSync(packageDirectory);
|
||||
self.logger.info("downloading " + packageName + " " + version + "....");
|
||||
this.logger.info("downloading " + packageName + " " + version + "....");
|
||||
|
||||
utils.downloadFile(fileLocation, packageDirectory + "/" + packageName + ".js", function() {
|
||||
utils.extractTar(packageDirectory + "/" + packageName + ".js", packageDirectory, function() {
|
||||
|
|
Loading…
Reference in New Issue