MCPcopy Create free account
hub / github.com/apache/maka / connectionTestErrorKind

Function connectionTestErrorKind

packages/runtime/src/test-connection.ts:517–530  ·  view source on GitHub ↗
(
  errorClass: ConnectionTestErrorClass | undefined,
)

Source from the content-addressed store, hash-verified

515}
516
517function connectionTestErrorKind(
518 errorClass: ConnectionTestErrorClass | undefined,
519): ConnectionEffectError['kind'] {
520 switch (errorClass) {
521 case 'auth':
522 case 'timeout':
523 case 'provider_unavailable':
524 case 'network':
525 return errorClass;
526 case 'unknown':
527 case undefined:
528 return 'unknown';
529 }
530}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected