mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui-next: catch installPlugin errors
This commit is contained in:
1 file changed
+4
@@ -32,7 +32,11 @@ async function loadPlugins() {
|
||||
|
||||
for (const plugin of plugins) {
|
||||
console.log(`[Hydro] Installing plugin: ${plugin.name}`);
|
||||
try {
|
||||
installPlugin(plugin);
|
||||
} catch (e) {
|
||||
console.error(`[Hydro] Failed to install plugin ${plugin.name}:`, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user