MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / errorString

Function errorString

src/shared/utils.ts:143–154  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

141}
142
143export function errorString(error: any): string {
144 if (!error)
145 return "<empty error>";
146 else if (error instanceof Error)
147 return error.message + (error.stack ? `\n${error.stack}` : "");
148 else if (error.message)
149 return error.message as string;
150 else if (typeof error === "string")
151 return error;
152 else
153 return `${error}`;
154}
155
156type BufferedLogMessage =
157 { type: "info", message: string, category?: LogCategory }

Callers 11

warnMethod · 0.90
errorMethod · 0.90
subscribeToStreamsFunction · 0.90
terminateRequestFunction · 0.90
errorAsDisplayValueFunction · 0.90
evaluateRequestFunction · 0.90
customRequestFunction · 0.90
customRequestMethod · 0.90
warnMethod · 0.90
errorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected