fix: improve error handling in TMDBMetadata by including response status and status text

This commit is contained in:
Viren070
2025-06-13 18:03:46 +01:00
parent 551335bcba
commit 2f371876c1
+1 -1
View File
@@ -82,7 +82,7 @@ export class TMDBMetadata {
});
if (!response.ok) {
throw new Error('Failed to fetch metadata');
throw new Error(`${response.status} - ${response.statusText}`);
}
const data = await response.json();