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:
Danielv123 committed 2024-11-29 20:01:45 +00:00
1 parent 747c13a715
commit d7792ca369
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ export async function loadPluginInfos(pluginList: Map<string, string>) {
try {
require.resolve(pluginPath);
} 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);
continue;
}