Skip to content

Fix potential panic at DockerCli creation - #1645

Merged
thaJeztah merged 1 commit into
docker:masterfrom
silvin-lubecki:fix-panic-error
Jan 29, 2019
Merged

Fix potential panic at DockerCli creation#1645
thaJeztah merged 1 commit into
docker:masterfrom
silvin-lubecki:fix-panic-error

Conversation

@silvin-lubecki

Copy link
Copy Markdown
Contributor

- What I did

Fix using a nil dockerCli if an error occurred during cli creation, using the standard error stream instead.
The code itself wasn't really panicking as NewDockerCli never returns an error... yet.

- A picture of a cute animal (not mandatory but encouraged)
image

…sing the standard error stream instead.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>

@vdemeestervdemeester left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐯

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #1645 into master will not change coverage.
The diff coverage is 0%.

@@ Coverage Diff @@## master #1645 +/- ##
======================================
Coverage 56.1% 56.1% ======================================
Files 300 300 Lines 20593 20593 ======================================
Hits 11554 11554 Misses 8208 8208 Partials 831 831

ijc
ijc approved these changes Jan 29, 2019
@silvin-lubecki

Copy link
Copy Markdown
ContributorAuthor

Come on codecov/patch...

@thaJeztahthaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah
thaJeztah merged commit 1c5f611 into docker:masterJan 29, 2019
@GordonTheTurtleGordonTheTurtle added this to the 19.03.0 milestone Jan 29, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@silvin-lubecki@codecov-io@vdemeester@thaJeztah@ijc@GordonTheTurtle