Skip to content
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

error-handling: split thiserror into its own slide #2332

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

fw-immunant
Copy link
Collaborator

thiserror is best understood as a way to eliminate boilerplate on the patterns we've already seen, and then we can show it in conjunction with anyhow subsequently.

Fixes #2027.

@fw-immunant fw-immunant linked an issue Aug 30, 2024 that may be closed by this pull request
Copy link
Collaborator

@mgeisler mgeisler left a comment

Choose a reason for hiding this comment

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

I'm very happy to have the page split! I think you just need to rename the old combined page and setup a redirect (in book.toml).

src/error-handling/thiserror-and-anyhow.md Outdated Show resolved Hide resolved
src/SUMMARY.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@randomPoison randomPoison left a comment

Choose a reason for hiding this comment

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

Excellent, I've been meaning to do this forever. Changes look good, modulo @mgeisler's outstanding requets.

src/error-handling/thiserror-and-anyhow.md Outdated Show resolved Hide resolved
@fw-immunant fw-immunant force-pushed the fw/error-crates-split branch 3 times, most recently from e6b58db to 45f240b Compare September 20, 2024 20:27
`thiserror` is best understood as a way to eliminate boilerplate on
the patterns we've already seen, and then we can show it in
conjunction with `anyhow` subsequently.
@fw-immunant fw-immunant merged commit aeb643f into google:main Sep 20, 2024
35 checks passed
@fw-immunant fw-immunant deleted the fw/error-crates-split branch September 20, 2024 20:56
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.

Error-handling crates slide should be split 26.3.2 Deriving Error enums
4 participants