fix: improve error logging
Cloudflare doesn't log causes, only the messages so splitting the logs in to 2
This commit is contained in:
@@ -46,11 +46,9 @@ export async function getEpisodesFromAnify(
|
||||
abortController.abort("Loading episodes from Anify timed out");
|
||||
}
|
||||
console.error(
|
||||
new Error(
|
||||
`Error trying to load episodes from anify; aniListId: ${aniListId}`,
|
||||
{ cause: e },
|
||||
),
|
||||
`Error trying to load episodes from anify; aniListId: ${aniListId}`,
|
||||
);
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
if (!response || response.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user