feat: optimize code

This commit is contained in:
fengcaiwen
2023-08-04 14:39:42 +08:00
parent 97042d6ed0
commit 5f08427105
6 changed files with 214 additions and 214 deletions

View File

@@ -31,7 +31,7 @@ func attachContainer(ctx context.Context, dockerCli command.Cli, errCh *chan err
resp, errAttach := dockerCli.Client().ContainerAttach(ctx, containerID, options)
if errAttach != nil {
return nil, errAttach
return nil, fmt.Errorf("failed to attach to container: %s, err: %v", containerID, errAttach)
}
var (