Minor tweaks.

This commit is contained in:
André Cruz
2013-06-03 16:54:09 +01:00
parent e188047cfb
commit 49be1638ba
2 changed files with 4 additions and 4 deletions

View File

@@ -265,9 +265,9 @@ Project.prototype.uninstall = function (names, options) {
});
}
// Question the user
that._logger.conflict('mutual', message, data);
// Question the user
return Q.nfcall(promptly.confirm, 'Continue anyway? (y/n)')
.then(function (confirmed) {
// If the user decided to skip it, remove from the array so that it won't

View File

@@ -41,7 +41,7 @@ StandardRenderer.prototype.error = function (err) {
err.id = err.code || 'error';
err.level = 'error';
str = this._prefixLog(err) + ' ' + err.message + '\n';
str = this._prefix(err) + ' ' + err.message + '\n';
// Check if additional details were provided
if (err.details) {
@@ -129,7 +129,7 @@ StandardRenderer.prototype._genericLog = function (log) {
stream = process.stdout;
}
str = this._prefixLog(log) + ' ' + log.message + '\n';
str = this._prefix(log) + ' ' + log.message + '\n';
this._write(stream, 'bower ' + str);
};
@@ -163,7 +163,7 @@ StandardRenderer.prototype._guessOrigin = function (log) {
}
};
StandardRenderer.prototype._prefixLog = function (log) {
StandardRenderer.prototype._prefix = function (log) {
var label;
var length;
var nrSpaces;