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

Function isCompositionAssetError

packages/studio/src/main.tsx:26–32  ·  view source on GitHub ↗
(msg: string, name: string | null)

Source from the content-addressed store, hash-verified

24
25// fallow-ignore-next-line complexity
26function isCompositionAssetError(msg: string, name: string | null): boolean {
27 if (msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found")))
28 return true;
29 if (name === "EncodingError" || msg.includes("unsupported or unrecognizable format")) return true;
30 if (msg.includes("MEDIA_ERR_SRC_NOT_SUPPORTED")) return true;
31 return false;
32}
33
34const ERROR_CAP = 50;
35let errorCount = 0;

Callers 1

main.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected