From c5e5bb90e3f0a2fb44874d5819b4323e654ca3f9 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 5 Dec 2019 16:31:11 -0800 Subject: [PATCH] better error message --- src/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.js b/src/apps.js index 534c14700..392e7cad4 100644 --- a/src/apps.js +++ b/src/apps.js @@ -645,7 +645,7 @@ function checkAppState(app, state) { assert.strictEqual(typeof app, 'object'); assert.strictEqual(typeof state, 'string'); - if (app.taskId) return new BoxError(BoxError.BAD_STATE, `Not allowed in this app state : ${app.installationState} / ${app.runState}`); + if (app.taskId) return new BoxError(BoxError.BAD_STATE, `Locked by task ${app.taskId} : ${app.installationState} / ${app.runState}`); if (app.installationState === exports.ISTATE_ERROR) { if (app.error.installationState === state) return null;