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

Function findErrorDefinition

src/cli/default-error-handler.ts:549–554  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

547}
548
549export function findErrorDefinition(err: Error) {
550 const error = errorsMap.find(([ErrorType]) => {
551 return err instanceof ErrorType || (err && err.name === ErrorType.name); // in some cases, such as forked process, the received err is serialized.
552 });
553 return error;
554}
555
556function getErrorFunc(errorDefinition) {
557 if (!errorDefinition) return null;

Callers 2

getExternalErrorMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected