Skip to content

Make iptable return an error in case of output#2561

Merged
crosbymichael merged 2 commits intomasterfrom
add_iptabled_errors
Nov 7, 2013
Merged

Make iptable return an error in case of output#2561
crosbymichael merged 2 commits intomasterfrom
add_iptabled_errors

Conversation

@creack
Copy link
Copy Markdown
Contributor

@creack creack commented Nov 5, 2013

No description provided.

@creack
Copy link
Copy Markdown
Contributor Author

creack commented Nov 5, 2013

/cc @crosbymichael

Comment thread iptables/iptables.go Outdated
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.

Shouldn't these all be "iptables" (plural) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

indeed, thx

@crosbymichael
Copy link
Copy Markdown
Contributor

@creack Does iptables not return a non 0 exit code causing an error to be returned by exec?

@creack
Copy link
Copy Markdown
Contributor Author

creack commented Nov 5, 2013

@crosbymichael It does not when there is a warning. And in case of error, it is better to retrieve 1) the error itself and 2) the output returned by iptables.

@vieux
Copy link
Copy Markdown
Contributor

vieux commented Nov 5, 2013

LGTM

@crosbymichael
Copy link
Copy Markdown
Contributor

LGTM

crosbymichael added a commit that referenced this pull request Nov 7, 2013
Make iptable return an error in case of output
@crosbymichael crosbymichael merged commit b5c984f into master Nov 7, 2013
@crosbymichael crosbymichael deleted the add_iptabled_errors branch November 7, 2013 17:15
cpuguy83 pushed a commit to cpuguy83/docker that referenced this pull request May 25, 2021
testing: remove use of docker/docker/errdefs in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants