Merge pull request #1193 from chiester/wip-1191-improveUninstallWarning

clarify uninstall warning message
This commit is contained in:
Sindre Sorhus
2014-04-11 21:45:37 +02:00

View File

@@ -685,7 +685,7 @@ Project.prototype._removePackages = function (packages) {
// Delete directory
if (!dir) {
promise = Q.resolve();
that._logger.warn('not-installed', name, {
that._logger.warn('not-installed', '\'' + name + '\'' + ' cannot be uninstalled as it is not currently installed', {
name: name
});
} else {
@@ -713,7 +713,7 @@ Project.prototype._removePackages = function (packages) {
promises.push(promise);
});
return Q.all(promises);
})