Skip to content

Commit

Permalink
update (parser): throw error instead of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SantriptaSharma committed Oct 14, 2023
1 parent 7a776de commit 9fbe8a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/parse-dining.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ async function ParseXlsx(path: string, year: number): Promise<MessMenu[]>
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[][]} = {
Expand Down

0 comments on commit 9fbe8a5

Please sign in to comment.