anyhow is super convenient and works very well, but we have a web backend now, and I'd like to easily be able to do selective error handling. Right now, the primary use-case is to tell the client about syntax errors in their SQL scripts. I think perhaps the easiest way to get this ball rolling is to just remove anyhow as a dependency and start fixing the compilation errors by adding variants to some enum Error { ... }. We can handroll them, or consider thiserror.
anyhow
is super convenient and works very well, but we have a web backend now, and I'd like to easily be able to do selective error handling. Right now, the primary use-case is to tell the client about syntax errors in their SQL scripts. I think perhaps the easiest way to get this ball rolling is to just removeanyhow
as a dependency and start fixing the compilation errors by adding variants to someenum Error { ... }
. We can handroll them, or consider thiserror.