Skip to content

Commit 05026ea

Browse files
committed
fix: spawn debug
1 parent 522f30e commit 05026ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/tools/src/spawn.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ export const spawn = (
1818
};
1919
logger.debug(`Running: ${file}`, ...(args ?? []));
2020
const childProcess = nanoSpawn(file, args, { ...defaultOptions, ...options });
21-
childProcess.finally(() =>
22-
logger.debug(`Finished: ${file}`, ...(args ?? []))
23-
);
21+
childProcess
22+
.catch(() => {
23+
// noop
24+
})
25+
.finally(() => logger.debug(`Finished: ${file}`, ...(args ?? [])));
2426

2527
setupChildProcessCleanup(childProcess);
2628
return childProcess;

0 commit comments

Comments
 (0)