MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / errorProps

Function errorProps

packages/studio/src/main.tsx:10–23  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

8trackStudioEvent("session_start");
9
10function errorProps(value: unknown): {
11 error_message: string;
12 error_name: string | null;
13 stack_trace: string | null;
14} {
15 if (value instanceof Error) {
16 return {
17 error_message: value.message,
18 error_name: value.name,
19 stack_trace: value.stack?.slice(0, 4000) ?? null,
20 };
21 }
22 return { error_message: String(value), error_name: null, stack_trace: null };
23}
24
25// fallow-ignore-next-line complexity
26function isCompositionAssetError(msg: string, name: string | null): boolean {

Callers 1

main.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected