From a38ecab5fa3f7bb77bebb0c0845ea9ce5a35738a Mon Sep 17 00:00:00 2001 From: liufei Date: Sun, 9 Jan 2022 17:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=BC=82=E5=B8=B8,=20?= =?UTF-8?q?=E5=86=99=E5=87=BA=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Thread/UpdateThread.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Thread/UpdateThread.cs b/Thread/UpdateThread.cs index 13ffb41..f5d82af 100644 --- a/Thread/UpdateThread.cs +++ b/Thread/UpdateThread.cs @@ -59,12 +59,9 @@ namespace GeekDesk.Thread })); } } -#pragma warning disable CS0168 // 声明了变量“e”,但从未使用过 - } catch (Exception e) -#pragma warning restore CS0168 // 声明了变量“e”,但从未使用过 + } catch (Exception ex) { - //不做处理 - //MessageBox.Show(e.Message); + LogUtil.WriteErrorLog(ex, "获取更新失败!"); } } }