This commit is contained in:
zhishinet/xuyangyang
2026-04-19 18:50:34 +08:00
parent 7c9351c2b5
commit 89d15ea9c8
2 changed files with 8 additions and 4 deletions

View File

@@ -586,8 +586,11 @@ namespace 全自动水压检测仪
} }
catch (Exception ex) catch (Exception ex)
{ {
MessageBox.Show($"加载数据失败:{ex.Message}", "错误",
MessageBoxButtons.OK, MessageBoxIcon.Error); LogHelper.Error($"[Report_Load - Report_Load]: {ex.Message}{Environment.NewLine}{ex.StackTrace}");
//MessageBox.Show($"加载数据失败:{ex.Message}", "错误",
// MessageBoxButtons.OK, MessageBoxIcon.Error);
BeginInvoke(new Action(Close)); BeginInvoke(new Action(Close));
} }
} }

View File

@@ -349,7 +349,8 @@ namespace 全自动水压检测仪
{ {
SafeInvoke(() => SafeInvoke(() =>
{ {
MessageBox.Show($"加载数据失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); LogHelper.Error($"[LoadData2] : {ex.Message}{Environment.NewLine}{ex.StackTrace}");
//MessageBox.Show($"加载数据失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}); });
} }
} }