fix(copy): align organize recovery messages with glossary
This commit is contained in:
1 parent
27386ba9df
commit
8d8bda152b
2 files changed
+2
-4
No files matched your search
@@ -157,9 +157,7 @@ export class OrganizeRecoveryError extends Error {
|
||||
readonly code = "conflict";
|
||||
constructor(readonly recovery: Recovery) {
|
||||
const labels = { sourcePaths: "来源文件", options: "本次整理设置", episodeStructure: "季集结构" };
|
||||
super(
|
||||
`历史整理缺少${recovery.missing.map((key) => labels[key]).join("、")},已保留可用信息,请在整理向导补齐后继续`,
|
||||
);
|
||||
super(`历史整理缺少${recovery.missing.map((key) => labels[key]).join("、")},已保留可用信息,在整理向导补齐后继续`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ export async function organizeFiles(
|
||||
}),
|
||||
)
|
||||
)
|
||||
throw new FilesError("bad_request", "重新整理只能选择原记录中的文件;请单独整理其它来源");
|
||||
throw new FilesError("bad_request", "重新整理只能选择原记录中的文件;其他来源单独整理");
|
||||
}
|
||||
if (r.rel === "") throw new FilesError("bad_request", "不能整理整个登记目录");
|
||||
if (r.isSymlink) throw new FilesError("bad_request", `不整理符号链接:${r.rel}`);
|
||||
|
||||
Reference in new issue
Block a user