notification: app updated message shown despite failure

This commit is contained in:
Girish Ramakrishnan
2021-07-13 13:29:42 -07:00
parent 0947125a03
commit db685d3a56
3 changed files with 7 additions and 5 deletions

View File

@@ -523,7 +523,7 @@ function backup(app, args, progressCallback, callback) {
if (error) {
debugApp(app, 'error backing up app:', error);
// return to installed state intentionally. the error is stashed only in the task and not the app (the UI shows error state otherwise)
return updateApp(app, { installationState: apps.ISTATE_INSTALLED, error: null }, callback.bind(null, makeTaskError(error, app)));
return updateApp(app, { installationState: apps.ISTATE_INSTALLED, error: null }, callback.bind(null, error));
}
callback(null);
});