fix(v1.4.2): 挂载发布归档目录并中文化路径报错 — compose补挂/vol2视频目录;LibraryService两处Path does not exist改为中文可操作提示(指路volumes挂载);版本4处升v1.4.2
This commit is contained in:
1 parent
87cc9c00a5
commit
0bbf14f194
7 files changed
+14
-6
No files matched your search
@@ -46,7 +46,7 @@ class LibraryService {
|
||||
|
||||
if (!fs.existsSync(normalizedPath)) {
|
||||
logger.warn(`路径不存在: ${normalizedPath}`);
|
||||
throw new ValidationError('Path does not exist', 'path');
|
||||
throw new ValidationError(`素材库路径不存在: ${normalizedPath}(如为宿主机目录,需先在 docker-compose.yml 的 volumes 里挂载进容器再重试)`, 'path');
|
||||
}
|
||||
|
||||
// 检查文件夹访问权限
|
||||
@@ -105,7 +105,7 @@ class LibraryService {
|
||||
|
||||
// 验证更新的路径是否存在
|
||||
if (updates.path && !fs.existsSync(updates.path)) {
|
||||
throw new ValidationError('Path does not exist', 'path');
|
||||
throw new ValidationError(`素材库路径不存在: ${updates.path}(如为宿主机目录,需先在 docker-compose.yml 的 volumes 里挂载进容器再重试)`, 'path');
|
||||
}
|
||||
|
||||
const success = this.configManager.updateLibrary(id, updates);
|
||||
|
||||
Reference in new issue
Block a user