捕获异常, 写出日志
This commit is contained in:
@@ -59,12 +59,9 @@ namespace GeekDesk.Thread
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#pragma warning disable CS0168 // 声明了变量“e”,但从未使用过
|
} catch (Exception ex)
|
||||||
} catch (Exception e)
|
|
||||||
#pragma warning restore CS0168 // 声明了变量“e”,但从未使用过
|
|
||||||
{
|
{
|
||||||
//不做处理
|
LogUtil.WriteErrorLog(ex, "获取更新失败!");
|
||||||
//MessageBox.Show(e.Message);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user