脚本运行异常到事件总线

This commit is contained in:
tfarcraw 2026-07-08 11:00:02 +08:00
parent 5011aa5ede
commit 83d23aa95b

View File

@ -1,4 +1,4 @@
using PLCSharp.Core.Common;
using PLCSharp.Core.Common;
using PLCSharp.Models;
using Prism.Commands;
using Prism.Mvvm;
@ -255,6 +255,7 @@ namespace PLCSharp.VVMs.Workflows
catch (Exception ex)
{
DebugLog += $"运行时异常: {ex}\n";
globalModel.SendErr($"运行时异常: {ex}\n");
Exception = true;
}