add asserts

This commit is contained in:
Girish Ramakrishnan
2019-12-05 09:32:45 -08:00
parent dbdf86edfc
commit 4bb676fb5c

View File

@@ -64,6 +64,9 @@ function debugApp(app) {
}
function makeTaskError(error, app) {
assert.strictEqual(typeof error, 'object');
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;