fix bug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user