kaaveland / eugene

Careful With that Lock, Eugene
MIT License
31 stars 0 forks source link

Replace `anyhow::Error` with `eugene::Error` #93

Closed kaaveland closed 3 weeks ago

kaaveland commented 1 month ago

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.

kaaveland commented 3 weeks ago

Solved by https://github.com/kaaveland/eugene/pull/99