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

Function getExternalErrorsMessageAndStack

src/cli/default-error-handler.ts:591–600  ·  view source on GitHub ↗
(errors: Error[])

Source from the content-addressed store, hash-verified

589}
590
591function getExternalErrorsMessageAndStack(errors: Error[]): string {
592 const result = errors
593 .map(e => {
594 const msg = getExternalErrorMessage(e);
595 const stack = e.stack || '';
596 return `${msg}\n${stack}\n`;
597 })
598 .join('~~~~~~~~~~~~~\n');
599 return result;
600}
601
602/**
603 * if err.userError is set, it inherits from AbstractError, which are user errors not Bit errors

Callers 1

Calls 1

getExternalErrorMessageFunction · 0.85

Tested by

no test coverage detected