Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: add error handling and toast notification for plugin installation failures

Tonhof9709467f500
diff --git a/src/routes/marketplace/+page.svelte b/src/routes/marketplace/+page.svelte
index 71e12bcb..b869d628 100644
--- a/src/routes/marketplace/+page.svelte
+++ b/src/routes/marketplace/+page.svelte
@@ -2,6 +2,7 @@
import { invoke } from "@tauri-apps/api/core";
import { onMount } from "svelte";
import { t } from "$lib/i18n";
+ import { showToast } from "$lib/stores/toast-store.svelte";
type PluginNavInfo = {
route: string;
@@ -146,7 +147,10 @@
try {
await invoke("install_plugin_from_registry", { pluginId: id, repo });
window.location.reload();
- } catch {}
+ } catch (e: any) {
+ const msg = typeof e === "string" ? e : e?.message ?? "Install failed";
+ showToast("error", msg);
+ }
installingId = null;
}