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, "获取更新失败!"); } } }