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

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

No files matched your search

+2 -2
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
}
+1 -1
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
}