CQCL / hugr-llvm

http://crates.io/crates/hugr-llvm
Apache License 2.0
5 stars 2 forks source link

Error handling: improve around calls into `CodegenExtension` #42

Open doug-q opened 3 months ago

doug-q commented 3 months ago

We expect this to be the primary extension point, so there is no excuse for user mistakes to cause panics.

Audit all calls to verify preconditions, and return helpful errors when they are violated.

Suggest trying to use anyhow::Context for this.