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 {
|
try {
|
||||||
process.stderr.write(`${message}\n`);
|
process.stderr.write(`${message}\n`);
|
||||||
} catch (writeErr) {
|
} catch (writeErr) {
|
||||||
try {
|
console.error(`[terminal] restore reporting failed${suffix}: ${String(writeErr)}`);
|
||||||
console.error(`[terminal] restore reporting failed${suffix}: ${String(writeErr)}`);
|
|
||||||
} catch (consoleErr) {
|
|
||||||
throw consoleErr;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue