aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils.js4
1 files changed, 2 insertions, 2 deletions
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){}
}
}
})