Stream: project-error-handling

Topic: Getting started


view this post on Zulip Nick Cameron (Jun 30 2021 at 23:16):

Hi! I'm keen to help with the error handling work. Is there somewhere I can find a summary of current status and work in progress? Are there 'good first issues' I could look at?

view this post on Zulip Jane Lusby (Jun 30 2021 at 23:45):

@Nick Cameron I'm excited to have your help :grinning_face_with_smiling_eyes:. Right now the best sources are probably the issue tracker on the project error handling repo, the project board in the same repo, or the A-error-handling tag on the rust repo, or our action items list.

view this post on Zulip Jane Lusby (Jun 30 2021 at 23:46):

Gimmi a second to dig up the link to the last agenda which links to previous agendas and the action items

view this post on Zulip Jane Lusby (Jun 30 2021 at 23:47):

https://hackmd.io/gWLFTxoSTimmrqHMq226Ug

view this post on Zulip Jane Lusby (Jun 30 2021 at 23:48):

Sadly haven't had a ton of time to push error handling project group work along these last couple weeks because of rust foundation work

view this post on Zulip Nick Cameron (Jul 01 2021 at 00:11):

Great, thanks! I'll take a look. I'm kind of busy with onboarding stuff at MS + catching up with Rust, so I might be a bit slow to start, I'll get stuck in soon :-)

view this post on Zulip Jane Lusby (Jul 01 2021 at 00:57):

Hype

view this post on Zulip Jane Lusby (Jul 01 2021 at 22:19):

@Nick Cameron just got this published today: https://blog.rust-lang.org/inside-rust/2021/07/01/What-the-error-handling-project-group-is-working-towards.html

view this post on Zulip Jane Lusby (Jul 01 2021 at 22:19):

and it gives a pretty good overview of the current goals we have

view this post on Zulip Nick Cameron (Jul 01 2021 at 23:01):

Awesome, thanks!

view this post on Zulip Nick Cameron (Jul 08 2021 at 02:00):

So, question, in the shiny future outlined in the blog post, how do crates like Eyre fit in? Would they take advantage of the new Report type stuff? Would the interface to Eyre change?

view this post on Zulip Jane Lusby (Jul 08 2021 at 02:01):

no change, std::error::Report can be thought of as an extremely basic version of eyre::Report, though it's not even meant to act as a trait object

view this post on Zulip Jane Lusby (Jul 08 2021 at 02:01):

its just a minimal version of the reporting part of eyre

view this post on Zulip Jane Lusby (Jul 08 2021 at 02:01):

eyre's default reporter might use std::error::Report

view this post on Zulip Jane Lusby (Jul 08 2021 at 02:02):

but beyond that it's still the thing you'd reach for when you want something more complicated like context alongside errors and thin pointer trait objects

view this post on Zulip Nick Cameron (Jul 08 2021 at 02:28):

So, if you're using Eyre (for example), when you call report on an error, it would return eyre::Report rather than std::Report?

view this post on Zulip Nick Cameron (Jul 08 2021 at 02:29):

Or different configurations of eyre would return different report types?

view this post on Zulip Jane Lusby (Jul 08 2021 at 02:30):

it would return eyre::Report

view this post on Zulip Jane Lusby (Jul 08 2021 at 02:30):

but impl EyreHandler for DefaultHandler might internally call std::error::Report when formatting errors


Last updated: Jan 29 2022 at 10:29 UTC