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