boxerror: details is not a subobject
This commit is contained in:
@@ -44,10 +44,12 @@ function makeTaskError(error, app) {
|
||||
assert(error instanceof BoxError);
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
|
||||
// track a few variables which helps 'repair' restart the task (see also scheduleTask in apps.js)
|
||||
error.details.taskId = app.taskId;
|
||||
error.details.installationState = app.installationState;
|
||||
return error.toPlainObject();
|
||||
return {
|
||||
message: error.message,
|
||||
reason: error.reason,
|
||||
taskId: app.taskId,
|
||||
installationState: app.installationState
|
||||
};
|
||||
}
|
||||
|
||||
// updates the app object and the database
|
||||
|
||||
Reference in New Issue
Block a user