datafusion-contrib / bdt

Boring Data Tool
Apache License 2.0
210 stars 20 forks source link

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

Closed zenria closed 9 months ago

zenria commented 10 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