Repository navigation
Add cookbook examples on error handling - #5538
Conversation
1173073 to
2df5f68
Compare
TomChv
left a comment
There was a problem hiding this comment.
I like this cookbook! It's really useful 🚀
I know, there's a TODO for it in the description above and that's why this is in draft. I wanted to give the opportunity for someone to review the code before porting it to the other languages while I'm working on fixing the Python reference (#4703). When that's done I'll come back to finish this and the post. |
+1 |
2df5f68 to
0a368fb
Compare
|
To reviewers: Just a reminder that this was initially intended as a guide but rushed it into a cookbook to get some of it out there. I know this needs to be improved. The exit code example could be split into at least 4 more use cases but I don't have time to flush that out now. I still have to port the example to Python and Node.js. After doing that, I suggest we merge this, and proceed to improve on the examples (split, clarify) right after. The reason is because this example is needed as part of showing a better way to manage errors without the removed exit code field. So we need this published for the release (https://github.com/dagger/dagger/milestone/18). |
vikram-dagger
left a comment
There was a problem hiding this comment.
LGTM, see minor suggestions. If time permits please add additional explanatory comments to the snippets for aborting and exit-code
936c80b to
a0ca05a
Compare
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
7ea81be to
519c47c
Compare
This change adds a few examples on error handling to the cookbook.
Original intent was a full guide, but I need to get this out there:
PREVIEW: https://deploy-preview-5538--devel-docs-dagger-io.netlify.app/7442989/cookbook#error-handling