捕获异常, 写出日志

This commit is contained in:
liufei
2022-01-09 17:33:49 +08:00
parent fdd8c8bb10
commit 145564bfc5
5 changed files with 35 additions and 52 deletions

View File

@@ -89,9 +89,10 @@ namespace GeekDesk.Control.Other
info.BitmapImage = ImageUtil.GetBitmapIconByPath(ofd.FileName);
CommonCode.SaveAppData(MainWindow.appData);
}
} catch (Exception)
} catch (Exception ex)
{
HandyControl.Controls.Growl.WarningGlobal("修改图标失败,已重置为默认图标!");
LogUtil.WriteErrorLog(ex, "修改图标失败!");
}
}