Less repeated logging

This commit is contained in:
Pfych
2021-09-25 15:42:45 +10:00
parent d428eddec6
commit 76df51f59f
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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");
}
-2
View File
@@ -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");
}