From e9f182def70a6a692e258c4529780ad9b2d4c2a0 Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 3 Feb 2026 06:22:51 +0000 Subject: [PATCH] fix: error handling in restore failure reporting --- src/terminal/restore.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/terminal/restore.ts b/src/terminal/restore.ts index b25baa3fde..eb0742905b 100644 --- a/src/terminal/restore.ts +++ b/src/terminal/restore.ts @@ -8,11 +8,7 @@ function reportRestoreFailure(scope: string, err: unknown, reason?: string): voi try { process.stderr.write(`${message}\n`); } catch (writeErr) { - try { - console.error(`[terminal] restore reporting failed${suffix}: ${String(writeErr)}`); - } catch (consoleErr) { - throw consoleErr; - } + console.error(`[terminal] restore reporting failed${suffix}: ${String(writeErr)}`); } }