Question on error-stack #175
-
Hi! I was looking at libraries that use Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
However, I moved back to anyhow as most of the time, creating a by-level-of-abstraction error message is not very important and could have some development overhead, especially when thinking of an error struct/enum name or when to change context. Additionally, it could hinder readability (at least for me), especially if there are a lot of lines that early return an error that does not return a Report directly, having to call In general |
Beta Was this translation helpful? Give feedback.
error-stack
shake up error handling as it allows me to think of possible error paths more thoroughly and think of error messages in a by-level-of-abstraction way. For a bonus, it is easy to attach arbitrary objects in error.However, I moved back to anyhow as most of the time, creating a by-level-of-abstraction error message is not very important and could have some development overhead, especially when thinking of an error struct/enum name or when to change context. Additionally, it could hinder readability (at least for me), especially if there are a lot of lines that early return an error that does not return a Report directly, having to call
report()
manually for each line.In general
e…