mcthesw / game-save-manager

一个简单的游戏存档管理器

Home Page:https://help.sworld.club

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[功能/FEATURE]使前端的报错更有可读性

mcthesw opened this issue · comments

commented

新功能描述 Describe the feature
现在的后端错误都是以这种形式传到前端
open::that(url).map_err(|e| e.to_string())
这显然是不妥当的,直接把错误信息丢给用户并没有什么帮助,在之后,应当至少提供一句话的简要描述,最好有多语言支持,如果有需要可以导出log文件(现在还没有错误记录的功能),因此,需要开发这些功能

  • 前端错误显示
  • 多语言
  • log功能