Skip to content

Commit

Permalink
Added some log messages in cancellation process
Browse files Browse the repository at this point in the history
  • Loading branch information
EzzhevNikita committed Sep 24, 2020
1 parent 0ab2f43 commit 7b88f0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tasks/BashV3/bash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ async function run() {
};

process.on("SIGINT", () => {
console.log('Started cancellation of executing script');
bash.killChildProcess();
});

Expand Down Expand Up @@ -162,6 +163,7 @@ async function run() {
* as we already have message after operation cancellation, we can avoid processing null code here.
*/
if (exitCode === null) {
console.log('Script execution cancelled');
return;
}

Expand Down
2 changes: 2 additions & 0 deletions Tasks/CmdLineV2/cmdline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async function run() {
}

process.on("SIGINT", () => {
console.log('Started cancellation of executing script');
bash.killChildProcess();
});

Expand All @@ -83,6 +84,7 @@ async function run() {
* as we already have message after operation cancellation, we can avoid processing null code here.
*/
if (exitCode === null) {
console.log('Script execution cancelled');
return;
}

Expand Down

0 comments on commit 7b88f0f

Please sign in to comment.