diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index f24a9605..47747f75 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -8,7 +8,7 @@ import { sleep, staticClasses, } from 'decky-frontend-lib'; -import { lazy } from 'react'; +import { FC, lazy } from 'react'; import { FaExclamationCircle, FaPlug } from 'react-icons/fa'; import { DeckyState, DeckyStateContextProvider, useDeckyState } from './components/DeckyState'; @@ -245,6 +245,20 @@ class PluginLoader extends Logger { }); } catch (e) { this.error('Error loading plugin ' + name, e); + const TheError: FC<{}> = () => ( + <> + Error:{' '} +
+ {e}
+
+ >
+ );
+ this.plugins.push({
+ name: name,
+ version: version,
+ content: