Open KavikaPalletenne opened 1 month ago
What exactly do you want? Is this about logging or reporting terminal errors?
Yup, therror is great! It's usually used more in libraries, where you want to expose your own error types to users of your library so those users can figure out which of your errors to handle in what way. But I'd argue anyhow is the "I don't want to think too much about errors and just want to print sth to the screen"-type of solution, so organizing different failure cases in thiserror is nicer in my opinion for a sizeable project like Chaos.
Set up error handling with Axum, so all
Err
andNone
errors bubble up and are returned as a HTTP response.