Skip to content

Commit

Permalink
refactor(NEU/parsing): better info
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Jul 14, 2024
1 parent a313bec commit 8841894
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/scripts/parseNEURepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ export const NEU_ITEMS = new Map<string, NEUItem>();
export const NEU_CONSTANTS = new Map();

export async function parseNEURepository() {
const timeNow = performance.now();
if (!fs.statSync("src/lib/constants/NotEnoughUpdates-REPO/items").isDirectory()) {
return;
if (!fs.existsSync("src/lib/constants/NotEnoughUpdates-REPO/items")) {
throw new Error("Couldn't find the NEU items directory (src/lib/constants/NotEnoughUpdates-REPO/items). Make sure you have the NEU repository cloned in the correct location.");
}

const items = fs.readdirSync("src/lib/constants/NotEnoughUpdates-REPO/items");
Expand Down

0 comments on commit 8841894

Please sign in to comment.