errorMessage -> errorJson

This commit is contained in:
Girish Ramakrishnan
2019-08-30 09:45:43 -07:00
parent f25d5b3304
commit 2585282f86
8 changed files with 25 additions and 22 deletions

View File

@@ -644,7 +644,7 @@ function importDatabase(addon, callback) {
if (!error) return iteratorCallback();
debug(`importDatabase: Error importing ${addon} of app ${app.id}. Marking as errored`, error);
appdb.update(app.id, { installationState: appdb.ISTATE_ERROR, errorMessage: error.message }, iteratorCallback);
appdb.update(app.id, { installationState: appdb.ISTATE_ERROR, error: { message: error.message } }, iteratorCallback);
});
}, callback);
});