From 03f218b7cea08d7b6f793137d99c92157e81c3f9 Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Mon, 7 Oct 2019 17:44:48 +0300 Subject: [PATCH] Throw error when can not terminate che task Signed-off-by: Roman Nikitenko --- .../eclipse-che-theia-plugin-ext/src/plugin/che-task-impl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/eclipse-che-theia-plugin-ext/src/plugin/che-task-impl.ts b/extensions/eclipse-che-theia-plugin-ext/src/plugin/che-task-impl.ts index ad3cdbc142..0d6e60d547 100644 --- a/extensions/eclipse-che-theia-plugin-ext/src/plugin/che-task-impl.ts +++ b/extensions/eclipse-che-theia-plugin-ext/src/plugin/che-task-impl.ts @@ -41,6 +41,7 @@ export class CheTaskImpl implements CheTask { if (runner) { return await runner.kill(taskInfo); } + throw new Error(`Failed to terminate Che command: ${taskInfo.config.label}: the corresponging executor is not found`); } async fireTaskExited(event: TaskExitedEvent): Promise {