mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24:52 +09:00
Gracefully handle error linking mods on Windows
This commit is contained in:
1 parent
9c9adf7c8e
commit
8bf5296fe6
1 file changed
+5
-1
@@ -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}.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user