MCPcopy
hub / github.com/codedogQBY/ReadAny / formatErrorEvent

Function formatErrorEvent

packages/core/src/feedback/feedback-service.ts:145–152  ·  view source on GitHub ↗
(event: ErrorEvent)

Source from the content-addressed store, hash-verified

143}
144
145function formatErrorEvent(event: ErrorEvent): string {
146 if (event.error instanceof Error) {
147 return formatLogArg(event.error);
148 }
149 return `${event.message || "Unhandled error"}${event.filename ? ` at ${event.filename}` : ""}${
150 event.lineno ? `:${event.lineno}` : ""
151 }`;
152}
153
154/** Format date as local time string: YYYY-MM-DD HH:mm:ss.SSS */
155function formatLocalTime(date: Date): string {

Callers 1

onErrorFunction · 0.85

Calls 1

formatLogArgFunction · 0.85

Tested by

no test coverage detected