diff --git a/src/utils/parse-dining.ts b/src/utils/parse-dining.ts index f90024c..5903252 100644 --- a/src/utils/parse-dining.ts +++ b/src/utils/parse-dining.ts @@ -35,8 +35,7 @@ async function ParseXlsx(path: string, year: number): Promise wb.worksheets.forEach(menu => { if (!isMenuSheet(menu)) { - console.error("Sheet is not a menu sheet"); - return; + throw new Error("Sheet is not a menu sheet"); } const meals: {[k in Meal]: xl.CellValue[][]} = {