Gracefully handle error linking mods on Windows

This commit is contained in:
Hornwitser committed 2023-08-15 18:44:53 +02:00
1 parent 9c9adf7c8e
commit 8bf5296fe6
1 file changed
+5 -1
+5 -1
View File
@@ -662,7 +662,11 @@ rcon.print(game.table_to_json(players))`.replace(/\r?\n/g, " ");
// not something we want to have. For this reason the mods
// are hard linked instead.
} else {
await fs.link(target, link);
try {
await fs.link(target, link);
} catch (err) {
this.logger.warn(`Failed to link mod ${modFile}.`);
}
}
}