This commit is contained in:
init
2025-09-18 19:19:57 +08:00
repo.diff.parent a19272de73
repo.diff.commit 7bf829b599
repo.diff.stats_desc%!(EXTRA int=2, int=3, int=3)

repo.diff.view_file

@@ -217,7 +217,7 @@ func GetMappedPort(ctx context.Context, containerName string, port string) (uint
}
}
}
return 0, fmt.Errorf("容器未开放端口" + port)
return 0, fmt.Errorf("容器未开放端口 %s", port)
}
func ExecCommandInContainer(ctx context.Context, cli *client.Client, containerName string, command string) (string, error) {
containerID, err := GetContainerID(cli, containerName)

repo.diff.view_file

@@ -96,13 +96,13 @@ func GetFileContentByPath(ctx context.Context, repo *repo.Repository, path strin
// No way to edit a directory online.
if entry.IsDir() {
return "", fmt.Errorf(path + " entry.IsDir")
return "", fmt.Errorf("%s entry.IsDir", path)
}
blob := entry.Blob()
if blob.Size() >= setting.UI.MaxDisplayFileSize {
return "", fmt.Errorf(path + " blob.Size overflow")
return "", fmt.Errorf("%s blob.Size overflow", path)
}
dataRc, err := blob.DataAsync()