Set error in installationProgress also on uninstallation errors

This commit is contained in:
Johannes Zellner
2016-02-24 17:53:21 +01:00
parent a3737c3797
commit c167bd8996

View File

@@ -701,7 +701,13 @@ function uninstall(app, callback) {
updateApp.bind(null, app, { installationProgress: '95, Remove app from database' }),
appdb.del.bind(null, app.id)
], callback);
], function seriesDone(error) {
if (error) {
debugApp(app, 'error uninstalling app: %s', error);
return updateApp(app, { installationState: appdb.ISTATE_ERROR, installationProgress: error.message }, callback.bind(null, error));
}
callback(null);
});
}
function runApp(app, callback) {