Skip to content

Commit

Permalink
Fix: handled comment by changing console.error to throw new Error in …
Browse files Browse the repository at this point in the history
…api function
  • Loading branch information
alexappleget committed Oct 21, 2024
1 parent 6572029 commit 2e8b5ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/apiFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ export async function getAllLeagueEntries({
});
return entries;
} catch (error) {
console.error('Error getting league entries:', error);
return [];
throw new Error('Error getting entries');
}
}

0 comments on commit 2e8b5ae

Please sign in to comment.