From afe53523eef384705a13b8c52b29450973c6926a Mon Sep 17 00:00:00 2001 From: "Robin_PC\\robin" <3504557@qq.com> Date: Fri, 3 Apr 2026 09:36:16 +0800 Subject: [PATCH] . --- .../SegmentProductionAuto_/SegmentProductionAutoForm.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs index 8fdc02e..3beefe7 100644 --- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs +++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs @@ -158,14 +158,18 @@ namespace ButcherFactory.SegmentProductionAuto_ msglbl.Text = string.Empty; })); } - catch + catch (Exception ex) { if (!bind) { BindBasicInfo(); bind = true; - } + } + + var msg = ex.Message ?? string.Empty; + msglbl.Text = "ERROR:" + msg; + LogUtil.WriteErrorFile(msg, "分割品车间称重计数"); } Thread.Sleep(500); }