Fix installer error reporting

This commit is contained in:
Ruben Daniels 2015-04-28 22:41:55 +00:00
parent 16136f2c47
commit 7dd8b141ae

View File

@ -299,7 +299,7 @@ define(function(require, exports, module) {
return callback(new Error("ERROR: Private flag in package.json prevents from installing"));
}
catch(e) {
return callback(new Error("ERROR: Invalid package"));
return callback(new Error("ERROR: Invalid package: " + e.message));
}
proc.execFile("bash", { args: ["-c", "cp -a " + join(process.cwd(), "/*") + " " + packagePath] }, function(err){