mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
Less repeated logging
This commit is contained in:
@@ -60,7 +60,7 @@ export const getPBForChart = async <T extends Game>(
|
||||
throw new Error(data.description);
|
||||
}
|
||||
} catch (e) {
|
||||
logger.info(e);
|
||||
logger.error(e);
|
||||
|
||||
throw new Error("Unable to fetch PBs for chart");
|
||||
}
|
||||
|
||||
@@ -51,8 +51,6 @@ export const getSongMetaFiltered = async (chartName: string, game: Game): Promis
|
||||
const songMeta = await getSongMeta(chartName);
|
||||
const songMetaFiltered = songMeta.filter((chart) => chart.game === game);
|
||||
if (songMetaFiltered.length === 0) {
|
||||
logger.info("No songs found");
|
||||
|
||||
throw new Error("No songs found");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user