We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e2234 commit bcf6fc7Copy full SHA for bcf6fc7
1 file changed
packages/studio/src/main.tsx
@@ -22,8 +22,13 @@ function errorProps(value: unknown): {
22
return { error_message: String(value), error_name: null, stack_trace: null };
23
}
24
25
+// fallow-ignore-next-line complexity
26
function isCompositionAssetError(msg: string): boolean {
- return msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found"));
27
+ if (msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found")))
28
+ return true;
29
+ if (msg.includes("unsupported or unrecognizable format")) return true;
30
+ if (msg.includes("MEDIA_ERR_SRC_NOT_SUPPORTED")) return true;
31
+ return false;
32
33
34
const ERROR_CAP = 50;
0 commit comments