MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / handleLocalProxyFailure

Function handleLocalProxyFailure

scripts/studio-provider-bridge.mjs:597–614  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

595}
596
597async function handleLocalProxyFailure(error) {
598 const message = describeError(error);
599 if (!message.includes("Local SimDeck request")) {
600 return;
601 }
602 updateLocalAvailability({
603 failureReason: message,
604 health: null,
605 ok: false,
606 simulator: null,
607 });
608 await maybeRestartLocalService({
609 failureReason: message,
610 health: null,
611 ok: false,
612 simulator: null,
613 });
614}
615
616async function localJson(path) {
617 const target = new URL(path, `${localUrl}/`);

Callers 1

handleRequestFunction · 0.85

Calls 3

updateLocalAvailabilityFunction · 0.85
maybeRestartLocalServiceFunction · 0.85
describeErrorFunction · 0.70

Tested by

no test coverage detected