From 7bf89fd93bc487e8445d6d85bb527251b7371a04 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 12 五月 2025 13:14:11 +0800
Subject: [PATCH] 优化项目;

---
 HMI.Base/PluginLoader.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/HMI.Base/PluginLoader.cs b/HMI.Base/PluginLoader.cs
index e7be956..6b4ba0b 100644
--- a/HMI.Base/PluginLoader.cs
+++ b/HMI.Base/PluginLoader.cs
@@ -62,6 +62,7 @@
         }
 
         private IPluginContainer pluginContainer;
+
         public void LoadMenuAndPlugin(IPluginContainer container, Dispatcher dispatcher)
         {
             pluginContainer = container;
@@ -76,6 +77,7 @@
                 });
             }
         }
+
         private void LoadChildrenMenu()
         {
             foreach (var menu in Plugins)
@@ -139,7 +141,7 @@
                     }
                     catch (Exception ex)
                     {
-                        log.Error("Load Plugin Failed.", ex);
+                        log.Error($"Load Plugin [{menu.Name}] Failed.", ex);
                         LoadMessageAppend?.Invoke(this, new LoadMsg
                         {
                             Type = LoadMsgType.LOADING,
@@ -217,6 +219,5 @@
             }
             return data;
         }
-
     }
 }

--
Gitblit v1.9.1