Skip to content

Commit c72dc2c

Browse files
unlairavallete
andauthored
fix: clarify error message when starting docker container (#4790)
Error message was not indicating which Docker container failed to start, forcing the user to use a process of elimination to narrow down the problem. Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com>
1 parent c8fa7d2 commit c72dc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utils/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func DockerStart(ctx context.Context, config container.Config, hostConfig contai
324324
}
325325
CmdSuggestion += fmt.Sprintf("\n%s a different %s port in %s", prefix, name, Bold(ConfigPath))
326326
}
327-
err = errors.Errorf("failed to start docker container: %w", err)
327+
err = errors.Errorf("failed to start docker container %q: %w", containerName, err)
328328
}
329329
return resp.ID, err
330330
}

0 commit comments

Comments
 (0)