MCPcopy
hub / github.com/di-sukharev/opencommit / getServiceUnavailableMessage

Function getServiceUnavailableMessage

out/cli.cjs:74519–74528  ·  view source on GitHub ↗
(provider, context)

Source from the content-addressed store, hash-verified

74517 return null;
74518 }
74519 try {
74520 return new URL(baseURL).host;
74521 } catch {
74522 return null;
74523 }
74524}
74525function getServiceUnavailableMessage(provider, context) {
74526 const endpointLabel = getCustomEndpointLabel(context?.baseURL);
74527 if (endpointLabel) {
74528 return `The configured API endpoint (${endpointLabel}) is temporarily unavailable.`;
74529 }
74530 if (context?.baseURL) {
74531 return "The configured API endpoint is temporarily unavailable.";

Callers 1

formatUserFriendlyErrorFunction · 0.70

Calls 1

getCustomEndpointLabelFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…