mthh / contour-rs

Contour polygon creation in Rust (using marching squares algorithm)
https://crates.io/crates/contour
Apache License 2.0
50 stars 10 forks source link

Expose an error type #9

Closed juh9870 closed 7 months ago

juh9870 commented 7 months ago

Currently, methods return an error type, which is impossible to access from other crates, and so it is impossible to make any reasonable error handling beyond "something gone wrong".

Error struct is public, but error module is not, and it is not re-exported, so we can't name this type in a code and can't match on its kind,

mthh commented 7 months ago

Thanks for your report! I will expose publicly Error struct and ErrorKind enum.