From 9595ff89221d18c56145aea09b0b70b23afb7abe Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 29 Jul 2026 13:59:02 +0530 Subject: [PATCH] fix: handle promise rejections with .catch() --- examples/cli-wrapper-live/src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cli-wrapper-live/src/index.tsx b/examples/cli-wrapper-live/src/index.tsx index 6e0108f13..873ac2fda 100644 --- a/examples/cli-wrapper-live/src/index.tsx +++ b/examples/cli-wrapper-live/src/index.tsx @@ -64,6 +64,7 @@ export function LiveWrapper() { readStream(); proc.exited.then((code) => { +.catch(err => console.error(err)) setStatus(`Process exited with code ${code}`); if (buffer) { setLines(prev => [...prev, buffer]);