fix: the Valves dialog of a plugin written with plain def does not say why it failed to open (#35393)

A tool or function written with plain def is switched off when it loads, for example after an upgrade, and opening its Valves only showed "Failed to load valves". The toast now shows the reason the server gives, such as "Methods must be defined with async def: inlet", so the admin knows what to change.
This commit is contained in:
Classic298 authored and GitHub committed 2026-12-01 00:04:31 +04:00
1 parent b47fc1d57c
commit c3b38c8e65
1 file changed
+1 -1
@@ -149,7 +149,7 @@
loading = false;
} catch (e) {
toast.error($i18n.t('Failed to load valves'));
toast.error(`${e}`);
show = false;
}
};