Better progress text when waiting for other tasks

Fixes #630
This commit is contained in:
Girish Ramakrishnan
2019-08-28 21:59:14 -07:00
parent a40505e2ee
commit 1faee00764
4 changed files with 19 additions and 4 deletions

View File

@@ -1182,7 +1182,7 @@ function uninstall(appId, auditSource, callback) {
assert.strictEqual(typeof auditSource, 'object');
assert.strictEqual(typeof callback, 'function');
debug('Will uninstall app with id:%s', appId);
debug(`Will uninstall app with id : ${appId}`);
get(appId, function (error, app) {
if (error) return callback(error);
@@ -1194,7 +1194,7 @@ function uninstall(appId, auditSource, callback) {
if (error && error.reason === AppstoreError.EXTERNAL_ERROR) return callback(new AppsError(AppsError.EXTERNAL_ERROR, error.message));
if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));
appdb.setInstallationCommand(appId, appdb.ISTATE_PENDING_UNINSTALL, function (error) {
appdb.update(appId, { installationState: appdb.ISTATE_PENDING_UNINSTALL }, function (error) {
if (error && error.reason === DatabaseError.NOT_FOUND) return callback(new AppsError(AppsError.NOT_FOUND, 'No such app'));
if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));