Skip to content

Commit bcf6fc7

Browse files
miguel-heygenclaude
andcommitted
fix(studio): filter media decode errors from crash telemetry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e4e2234 commit bcf6fc7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/studio/src/main.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ function errorProps(value: unknown): {
2222
return { error_message: String(value), error_name: null, stack_trace: null };
2323
}
2424

25+
// fallow-ignore-next-line complexity
2526
function isCompositionAssetError(msg: string): boolean {
26-
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;
2732
}
2833

2934
const ERROR_CAP = 50;

0 commit comments

Comments
 (0)