From 2955681975b175f6f4b0623c28642f7a78b0cd98 Mon Sep 17 00:00:00 2001
From: TrainDoctor <traindoctor@protonmail.com>
Date: Sun, 13 Nov 2022 16:31:05 -0800
Subject: Show plugin as error and give guidance for uninstall

---
 frontend/src/plugin-loader.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'frontend/src/plugin-loader.tsx')

diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 47747f75..582230ca 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -9,7 +9,7 @@ import {
   staticClasses,
 } from 'decky-frontend-lib';
 import { FC, lazy } from 'react';
-import { FaExclamationCircle, FaPlug } from 'react-icons/fa';
+import { FaCog, FaExclamationCircle, FaPlug } from 'react-icons/fa';
 
 import { DeckyState, DeckyStateContextProvider, useDeckyState } from './components/DeckyState';
 import LegacyPlugin from './components/LegacyPlugin';
@@ -249,8 +249,9 @@ class PluginLoader extends Logger {
           <>
             Error:{' '}
             <pre>
-              <code>{e}</code>
+              <code>{e instanceof Error ? e.stack : e?.toString()}</code>
             </pre>
+            Please go to the <FaCog /> in Decky Loader to go to the settings menu if you need to uninstall this plugin.
           </>
         );
         this.plugins.push({
-- 
cgit v1.2.3

