mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
fix: error handling in restore failure reporting
This commit is contained in:
@@ -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)}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user