Store result and error message separately

This commit is contained in:
Girish Ramakrishnan
2018-11-29 14:28:56 -08:00
parent e8fa909c2f
commit d9f3f64c76
6 changed files with 8 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ function doUpdate(boxUpdateInfo, callback) {
assert(boxUpdateInfo && typeof boxUpdateInfo === 'object');
function updateError(e) {
tasks.setProgress(tasks.TASK_UPDATE, { percent: -1, result: e.message }, NOOP_CALLBACK);
tasks.setProgress(tasks.TASK_UPDATE, { percent: -1, errorMessage: e.message }, NOOP_CALLBACK);
callback(e);
}