Skip to content

Commit e9f182d

Browse files
committed
fix: error handling in restore failure reporting
1 parent 1b31e2f commit e9f182d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎src/terminal/restore.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ function reportRestoreFailure(scope: string, err: unknown, reason?: string): voi
88
try {
99
process.stderr.write(`${message}\n`);
1010
} catch (writeErr) {
11-
try {
12-
console.error(`[terminal] restore reporting failed${suffix}: ${String(writeErr)}`);
13-
} catch (consoleErr) {
14-
throw consoleErr;
15-
}
11+
console.error(`[terminal] restore reporting failed${suffix}: ${String(writeErr)}`);
1612
}
1713
}
1814

0 commit comments

Comments
 (0)