Skip to content

Go SDK: include stderr in provisioning error. - #3826

Merged
sipsma merged 2 commits into
dagger:mainfrom
sipsma:more-error
Nov 22, 2022
Merged

sipsma merged 2 commits into
dagger:mainfrom
sipsma:more-error

Conversation

@sipsma

@sipsma sipsma commented Nov 14, 2022

Copy link
Copy Markdown
Contributor

Previously unless you configured log output, no errors that occur in the engine-session binary would be visible to the end user, they would just get EOF as an error and nothing else, which is extremely confusing. This made it much harder to debug issue encountered in this PR for example: #3774

Now, even when log output is not set, the contents of stderr are temporarily buffered during provisioning and included in the error message if something goes wrong.

This should go well nicely with a similar change in the Python SDK: https://github.com/dagger/dagger/pull/3825/files

@gerhard

gerhard commented Nov 16, 2022 •

Copy link
Copy Markdown
Contributor

@helderco review please because #3838

@helderco

Copy link
Copy Markdown
Contributor

That issue is just to mirror this one in Python. I'll let @aluzzardi review this one.

@sipsma
sipsma merged commit 5d14654 into dagger:main Nov 22, 2022
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