mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 03:56:45 +00:00
fix: narrow acpx health failure handling
This commit is contained in:
@@ -606,13 +606,16 @@ export class AcpxRuntime implements AcpRuntime {
|
||||
|
||||
if (!result.ok) {
|
||||
this.healthy = false;
|
||||
const failure = result.failure;
|
||||
return {
|
||||
ok: false,
|
||||
code: "ACP_BACKEND_UNAVAILABLE",
|
||||
message:
|
||||
result.failure.error instanceof Error
|
||||
? result.failure.error.message
|
||||
: String(result.failure.error),
|
||||
failure.kind === "exception"
|
||||
? failure.error instanceof Error
|
||||
? failure.error.message
|
||||
: String(failure.error)
|
||||
: "acpx backend unavailable",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user