mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Log error when a specified plugin does not exist, but allow loading without it
Preventing loading just because a plugin is missing would cause the host to become inaccessible if something went wrong when managing plugins through the remote interface
This commit is contained in:
1 parent
747c13a715
commit
d7792ca369
1 file changed
+1
-1
@@ -30,7 +30,7 @@ export async function loadPluginInfos(pluginList: Map<string, string>) {
|
|||||||
try {
|
try {
|
||||||
require.resolve(pluginPath);
|
require.resolve(pluginPath);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.warn(`Plugin path ${pluginPath} does not exist, not loading ${pluginName}`);
|
logger.error(`Plugin path ${pluginPath} does not exist, not loading ${pluginName}`);
|
||||||
pluginList.delete(pluginName);
|
pluginList.delete(pluginName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user