fix: 获取文件导出路径错误提示信息

This commit is contained in:
TsMask
2025-04-28 14:52:14 +08:00
parent 1f6a12c0c1
commit eaf0add76c
2 changed files with 3 additions and 3 deletions

View File

@@ -5,10 +5,10 @@ import (
"os"
"path/filepath"
"be.ems/features/ue/model"
"be.ems/lib/file"
"be.ems/lib/log"
"be.ems/lib/services"
"be.ems/features/ue/model"
"github.com/gin-gonic/gin"
)
@@ -29,7 +29,7 @@ func (m *FileExport) GetFileList(c *gin.Context) {
files, err := file.GetFileInfo(querys.Path, querys.Suffix)
if err != nil {
log.Error("failed to GetFileInfo:", err)
c.JSON(http.StatusOK, services.ErrResp(err.Error()))
c.JSON(http.StatusOK, services.ErrResp("not found path file"))
return
}

View File

@@ -68,7 +68,7 @@ func (m *FileExport) GetFileList(c *gin.Context) {
files, err := file.GetFileInfo(querys.Path, querys.Suffix)
if err != nil {
log.Error("failed to GetFileInfo:", err)
c.JSON(http.StatusOK, services.ErrResp(err.Error()))
c.JSON(http.StatusOK, services.ErrResp("not found path file"))
return
}