Skip to content

Commit

Permalink
移除获取文件列表错误消息中的冗余信息
Browse files Browse the repository at this point in the history
在Pod控制器的pod_file.go中,精简了获取文件列表失败时的错误消息。删除了错误信息中不必要的详细解释,使错误消息更加简洁明了。
  • Loading branch information
weibaohui committed Oct 18, 2024
1 parent e4e8a3f commit 7bf0ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod/pod_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func FileListHandler(c *gin.Context) {
// 获取文件列表
nodes, err := pf.GetFileList(info.Path)
if err != nil {
amis.WriteJsonError(c, fmt.Errorf("获取文件列表失败,容器内没有shell或者没有ls命令:%v", err))
amis.WriteJsonError(c, fmt.Errorf("获取文件列表失败,容器内没有shell或者没有ls命令"))
return
}
amis.WriteJsonList(c, nodes)
Expand Down

0 comments on commit 7bf0ef4

Please sign in to comment.