fix(studio): filter media decode errors from crash telemetry

This commit is contained in:
Miguel Ángel
2026-05-25 16:49:40 +00:00
parent e4e2234303
commit 179241e932
+6 -1
View File
@@ -22,8 +22,13 @@ function errorProps(value: unknown): {
return { error_message: String(value), error_name: null, stack_trace: null };
}
// fallow-ignore-next-line complexity
function isCompositionAssetError(msg: string): boolean {
return msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found"));
if (msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found")))
return true;
if (msg.includes("unsupported or unrecognizable format")) return true;
if (msg.includes("MEDIA_ERR_SRC_NOT_SUPPORTED")) return true;
return false;
}
const ERROR_CAP = 50;