mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:54:32 +00: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 {
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user