Looks interesting. One nit:
This would then often turn into error messages that looked like the following:
Error: Engine Error: Simulation Error: Experiment Error: Datastore Error: No such file or directory (os error 2)
Anyhow prints errors in the format of
Error: Failed to read instrs from ./path/to/instrs.json Caused by: No such file or directory (os error 2)
if you don't explicitly mention the wrapped error in the thiserror display format. Even the examples the thiserror documentation don't include the wrapped error in the display format. I believe the intention is for anyhow to be used in applications and thiserror in libraries. Only applications should be displaying errors, libraries should forward them to their users.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.