feat: improve error handling

This commit is contained in:
AnotiaWang
2025-02-13 16:46:11 +08:00
parent 2ecd1e2213
commit 1ce32fabc2
7 changed files with 51 additions and 21 deletions

View File

@ -73,5 +73,8 @@
"error": "Generate report failed: {0}",
"downloadingFonts": "Downloading necessary fonts, this may take some time...",
"downloadFontFailed": "Download font failed"
},
"error": {
"requestBlockedByCORS": "The current API provider may not allow cross-origin requests. Please try a different service provider or contact the provider for support."
}
}

View File

@ -73,5 +73,8 @@
"error": "生成报告失败:{0}",
"downloadingFonts": "正在下载必要字体,可能需要较长时间...",
"downloadFontFailed": "下载字体失败"
},
"error": {
"requestBlockedByCORS": "当前 API 服务可能不允许接口跨域,请换一个服务试试,或者向服务方反馈。"
}
}