Show a recovery screen for app render errors (#1924)
* fix(app): show recovery screen for render failures Render a retryable fallback with useful error details when the routed app tree throws during render instead of leaving the app blank. * test(app): cover root error details without mounting Move caught-value formatting into a pure module, cover AggregateError fields without duplicate output, and remove the component-mounted test. * fix(app): keep empty error details caught * fix(app): preserve nullable aggregate errors * fix(app): guard malformed error details * fix(app): handle recursive error causes * fix(app): guard error detail formatting failures * fix(app): localize root error fallback * fix(app): keep root error fallback on existing i18n
This commit is contained in:
@@ -1034,6 +1034,12 @@ export const zhCN: TranslationResources = {
|
||||
},
|
||||
},
|
||||
},
|
||||
rootError: {
|
||||
kicker: "出现问题",
|
||||
title: "Paseo 遇到了问题。",
|
||||
body: "请重试以重新加载应用。如果问题持续发生,请在报告时附上下面的详细信息。",
|
||||
details: "详情",
|
||||
},
|
||||
startup: {
|
||||
errorTitle: "出现问题",
|
||||
errorDescription: "本地服务器启动失败。如果持续发生,请在 GitHub 报告问题并附上下方日志。",
|
||||
|
||||
Reference in New Issue
Block a user