Conversation
Mirko-von-Leipzig
left a comment
There was a problem hiding this comment.
I'm generally not a fan of miette for conventional error chaining because its so verbose. Its great for error formatting within generated code but less so for simple .context("failed xyz").
Am I correct in saying your two examples are from different errors because they don't really line up?
I don't have a strong opinion on the error handling here as we don't really expect this to ever error for users; and very rarely for devs.
Correct. Although if there a multiple errors, only one would be shown with
An actionable error message is always a win in my books. Particularly when editing |
Makes sense :) Thanks! |
Currently we reduce
miette::Errortoanyhow::Error. This retains themiettecontext, upgrading output from:to: