mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Don't send ERR_TOURNAMENT_NOT_FOUND to discord hook
This commit is contained in:
@@ -155,9 +155,15 @@ export const fetchTournamentResults = actionClient
|
|||||||
})),
|
})),
|
||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
|
if (
|
||||||
|
!("message" in error) ||
|
||||||
|
error.message !== "ERR_TOURNAMENT_NOT_FOUND"
|
||||||
|
) {
|
||||||
reportFetchError(id, error);
|
reportFetchError(id, error);
|
||||||
errorLog(JSON.stringify(error, null, 2));
|
errorLog(JSON.stringify(error, null, 2));
|
||||||
|
}
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user