fix: error handling in restore failure reporting
parent
1b31e2f345
commit
e9f182def7
|
|
@ -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)}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue