mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:28:38 +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) {
|
if (!result.ok) {
|
||||||
this.healthy = false;
|
this.healthy = false;
|
||||||
|
const failure = result.failure;
|
||||||
return {
|
return {
|
||||||
ok: false,
|
ok: false,
|
||||||
code: "ACP_BACKEND_UNAVAILABLE",
|
code: "ACP_BACKEND_UNAVAILABLE",
|
||||||
message:
|
message:
|
||||||
result.failure.error instanceof Error
|
failure.kind === "exception"
|
||||||
? result.failure.error.message
|
? failure.error instanceof Error
|
||||||
: String(result.failure.error),
|
? failure.error.message
|
||||||
|
: String(failure.error)
|
||||||
|
: "acpx backend unavailable",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user