17
Blog Post: How To Wrap Your Errors With Enums When Using Error-Stack
(betterprogramming.pub)
I guess what I don't really understand still is what advantage this provides over something like anyhow.
Error stack will give will print the full stack of errors and their corresponding line in the code. Much like a backtrace, but for errors.
Doesn't anyhow also give a stack of errors? Although not with lines, that does sound useful.
You are right, it does. But as you say, it seems more limited in that aspect than error-stack from a first glance.
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits