diff options
author | 0neGal <mail@0negal.com> | 2022-02-11 15:48:31 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-02-11 15:48:31 +0100 |
commit | c8557e3a1601d2151e566302090d7981e7035807 (patch) | |
tree | 0c2b6f42388f70425a820aef333145ac68f35b9a /src | |
parent | 18446985ffbfb7fb567076b3103504ca9cb6e8b1 (diff) | |
download | Viper-c8557e3a1601d2151e566302090d7981e7035807.tar.gz Viper-c8557e3a1601d2151e566302090d7981e7035807.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.js | 4 |
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){} } } }) |