MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / formatErrorForDev

Function formatErrorForDev

packages/core/src/forms/internal/dev.ts:13–22  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

11}
12
13export function formatErrorForDev(error: unknown): string {
14 if (error instanceof Error) {
15 return `${error.name}: ${error.message}`;
16 }
17 try {
18 return String(error);
19 } catch {
20 return "[unstringifiable thrown value]";
21 }
22}

Callers 1

failSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected