fix: surface backend error details in proxy toast messages

The takeover.failed i18n template lacked the {{detail}} placeholder
and three useProxyStatus onError callbacks omitted the detail variable,
so proxy start/stop/takeover failures all displayed a generic message
regardless of the underlying cause.
This commit is contained in:
Jason
2026-04-15 11:48:24 +08:00
parent e4c34b34e7
commit 701e7d9581
5 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -2056,7 +2056,7 @@
"hint": "Select apps to route — once enabled, requests from that app will go through local routing",
"enabled": "{{app}} routing enabled",
"disabled": "{{app}} routing disabled",
"failed": "Failed to toggle routing",
"failed": "Failed to toggle routing: {{detail}}",
"tooltip": {
"active": "{{appLabel}} is routing - {{address}}:{{port}}\nSwitch provider for hot switching",
"broken": "{{appLabel}} is routing, but routing service is not running",
+1 -1
View File
@@ -2056,7 +2056,7 @@
"hint": "ルーティングするアプリを選択します。有効にすると、そのアプリのリクエストはローカルルーティング経由で転送されます",
"enabled": "{{app}} ルーティング有効",
"disabled": "{{app}} ルーティング無効",
"failed": "ルーティングの切り替えに失敗しました",
"failed": "ルーティングの切り替えに失敗しました: {{detail}}",
"tooltip": {
"active": "{{appLabel}} がルーティング中 - {{address}}:{{port}}\nホットスイッチングのためプロバイダを切り替え",
"broken": "{{appLabel}} がルーティング中ですが、ルーティングサービスが実行されていません",
+1 -1
View File
@@ -2057,7 +2057,7 @@
"hint": "选择要路由的应用,启用后该应用的请求将通过本地路由转发",
"enabled": "{{app}} 路由已启用",
"disabled": "{{app}} 路由已关闭",
"failed": "切换路由状态失败",
"failed": "切换路由状态失败: {{detail}}",
"tooltip": {
"active": "{{appLabel}} 路由中 - {{address}}:{{port}}\n切换该应用供应商为热切换",
"broken": "{{appLabel}} 路由中,但路由服务未运行",