From c8557e3a1601d2151e566302090d7981e7035807 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 11 Feb 2022 15:48:31 +0100 Subject: fixed windows-only bug/error I have no clue why this is only a Windows error, but it is, which is also why it slipped through into the 1.2.0 release. --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils.js b/src/utils.js index 009b5cd..842ff99 100644 --- a/src/utils.js +++ b/src/utils.js @@ -383,7 +383,7 @@ const mods = { let manifest = path.join(modpath, file, "manifest.json"); if (fs.existsSync(manifest)) { - mods[mods.length - 1].ManifestName = require(manifest).name; + try {mods[mods.length - 1].ManifestName = require(manifest).name}catch(err){} } } } @@ -408,7 +408,7 @@ const mods = { let manifest = path.join(modpath, file, "manifest.json"); if (fs.existsSync(manifest)) { - mods[mods.length - 1].ManifestName = require(manifest).name; + try {mods[mods.length - 1].ManifestName = require(manifest).name}catch(err){} } } }) -- cgit v1.2.3