datafusion-contrib / bdt

Boring Data Tool
Apache License 2.0
198 stars 18 forks source link

Implement Error trait for Error struct (with the help of thiserror) #20

Closed zenria closed 4 months ago

zenria commented 5 months ago

Hi, to use BDT as a lib in other programs, the Error struct should implements the Error trait.

It will be then easy to let some other crate such as anyhow or eyre handle error propagation and reporting.

This PR implements the Error trait on the struct using thiserror