fix: improve error logging
Cloudflare doesn't log causes, only the messages so splitting the logs in to 2
This commit is contained in:
@@ -68,11 +68,9 @@ export async function getEpisodesFromAniwatch(
|
||||
}
|
||||
|
||||
console.error(
|
||||
new Error(
|
||||
`Error trying to load episodes from aniwatch; aniListId: ${aniListId}`,
|
||||
{ cause: error },
|
||||
),
|
||||
`Error trying to load episodes from aniwatch; aniListId: ${aniListId}`,
|
||||
);
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user