Skip to content

Commit 36b96f2

Browse files
author
Kelly Selden
committed
fix: support execa v9 error msg
1 parent 7cd0a16 commit 36b96f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/remote/src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ async function killOrphans() {
130130
force: process.platform === 'win32',
131131
});
132132
} catch (err) {
133-
if (/(Process doesn't exist|No such process)/.test(err.message)) {
133+
// A new error type in execa v9
134+
if (err.message.includes('ExecaError: Command was killed with SIGTERM (Termination)')) {
135+
debug(err.message);
136+
} else if (/(Process doesn't exist|No such process)/.test(err.message)) {
134137
debug(err.message);
135138
} else {
136139
// Sometimes you get "Killing process 30602 failed"

0 commit comments

Comments
 (0)