diff --git a/features/ue/controller/file_export.go b/features/ue/controller/file_export.go index 96c3ccd3..926f5e50 100644 --- a/features/ue/controller/file_export.go +++ b/features/ue/controller/file_export.go @@ -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 } diff --git a/features/ue/file_export/controller.go b/features/ue/file_export/controller.go index f40d93e0..d0d4379f 100644 --- a/features/ue/file_export/controller.go +++ b/features/ue/file_export/controller.go @@ -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 }