MCPcopy Create free account
hub / github.com/continuedev/continue / getRootCause

Function getRootCause

core/util/errors.ts:7–12  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

5 * @returns The root cause of the error, or the original error if no further cause is found.
6 */
7export function getRootCause(err: any): any {
8 if (err.cause) {
9 return getRootCause(err.cause);
10 }
11 return err;
12}
13
14export class ContinueError extends Error {
15 reason: ContinueErrorReason;

Callers 3

errorToProgressUpdateMethod · 0.85
indexFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected