Improve error message when uploading is conflicted

pull/1217/head
HFO4 3 years ago
parent ace398d87b
commit 20e90e3963

@ -1 +1 @@
Subproject commit 1f4883774ab9fc24685a4adf8099e38e7daf67c8
Subproject commit 3d749b7bbe0657b18be8d8d6a66539378de03008

@ -16,7 +16,7 @@ var (
ErrRootProtected = errors.New("无法对根目录进行操作")
ErrInsertFileRecord = serializer.NewError(serializer.CodeDBError, "无法插入文件记录", nil)
ErrFileExisted = serializer.NewError(serializer.CodeObjectExist, "同名文件或目录已存在", nil)
ErrFileUploadSessionExisted = serializer.NewError(serializer.CodeObjectExist, "当前目录下已经有同名文件正在上传中", nil)
ErrFileUploadSessionExisted = serializer.NewError(serializer.CodeObjectExist, "当前目录下已经有同名文件正在上传中,请尝试清空上传会话", nil)
ErrFolderExisted = serializer.NewError(serializer.CodeObjectExist, "同名目录已存在", nil)
ErrPathNotExist = serializer.NewError(404, "路径不存在", nil)
ErrObjectNotExist = serializer.NewError(404, "文件不存在", nil)

Loading…
Cancel
Save