MCPcopy
hub / github.com/teambit/bit / getErrorFunc

Function getErrorFunc

src/cli/default-error-handler.ts:556–560  ·  view source on GitHub ↗
(errorDefinition)

Source from the content-addressed store, hash-verified

554}
555
556function getErrorFunc(errorDefinition) {
557 if (!errorDefinition) return null;
558 const [, func] = errorDefinition;
559 return func;
560}
561
562function getErrorMessage(error: Error | null | undefined, func: Function | null | undefined): string {
563 if (!error || !func) return '';

Callers 2

getExternalErrorMessageFunction · 0.85
getErrMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected