mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-24 21:58:04 -05:00
Update error handling
This commit is contained in:
@@ -20,9 +20,7 @@ export const getPlayers = async (limit = 50) => {
|
||||
|
||||
if (!data) {
|
||||
if (error) {
|
||||
throw new Error(
|
||||
`${error.message}${JSON.stringify(error.graphQLErrors, null, 2)}`,
|
||||
);
|
||||
throw error;
|
||||
}
|
||||
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user