New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: keep stdout and stderr in the error object for Docker Desktop extensions #3014
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks weird to me because in case of error this first method resolves an error and not an exec result and the caller will check for result.error which I don't understand where it is set
0439143
to
ba404f7
Compare
@jeffmaury should be fixed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but still not getting it: if error is raised (bad command or process killed) then exit code will be 0 as error is resolved and close event won't be processed. Also I don't see when result.error is set
…ensions it looks like some extensions expect to find it Signed-off-by: Florent Benoit <fbenoit@redhat.com>
…top extensions Signed-off-by: Florent Benoit <fbenoit@redhat.com>
…top extensions Signed-off-by: Florent Benoit <fbenoit@redhat.com>
ba404f7
to
10c7fc1
Compare
@jeffmaury looks like there was dead code. I removed the part about the .error field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…tensions (containers#3014) * fix: keep stdout ad stderr in the error object for Docker Desktop extensions Signed-off-by: Florent Benoit <fbenoit@redhat.com>
What does this PR do?
Keep stdout ad stderr in the error object for Docker Desktop extensions
it looks like some extensions expect to find it
Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
Fixes #3017
How to test this PR?