fix(api): wake 与回档/备份/改文件按服务器互斥
This commit is contained in:
27 files changed
+1300
-36
No files matched your search
@@ -14,6 +14,7 @@
|
||||
"console_unavailable": "Can't reach the server console right now — try again shortly.",
|
||||
"no_backup": "There's no restorable backup for this server yet.",
|
||||
"not_stopped": "Stop the server completely before restoring — a restore overwrites the live world volume.",
|
||||
"maintenance_in_progress": "This server's world is busy with a restore, backup or file write — try again once it finishes, usually within a minute or two.",
|
||||
"no_world_volume": "This server has no world volume yet — start it once so it is created, then retry.",
|
||||
"restore_unavailable": "Restore isn't available right now — try again later.",
|
||||
"session_expired": "Your session expired — please sign in again.",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"console_unavailable": "暂时无法连接服务器控制台,请稍后重试。",
|
||||
"no_backup": "这台服务器暂时没有可回档的备份。",
|
||||
"not_stopped": "回档会覆盖世界的实时存储卷,请先把服务器完全停止再回档。",
|
||||
"maintenance_in_progress": "这台服务器的世界正在回档、备份或写入文件——等它完成后再试,通常不超过一两分钟。",
|
||||
"no_world_volume": "这台服务器还没有世界卷——先启动一次让它创建,然后再试。",
|
||||
"restore_unavailable": "回档功能当前不可用,请稍后再试。",
|
||||
"session_expired": "会话已过期——请重新登录。",
|
||||
|
||||
@@ -705,6 +705,11 @@ export function humanizeError(e: unknown): string {
|
||||
return t("no_backup");
|
||||
case "not_stopped":
|
||||
return t("not_stopped");
|
||||
// World-volume lock: a restore, backup or file write is running on this
|
||||
// server's world, so a wake or a second world operation is refused until the
|
||||
// Job finishes (internal/maintenance).
|
||||
case "maintenance_in_progress":
|
||||
return t("maintenance_in_progress");
|
||||
case "no_world_volume":
|
||||
return t("no_world_volume");
|
||||
case "restore_unavailable":
|
||||
|
||||
Reference in new issue
Block a user