bytesnake / telebot

Write Telegram bots in Rust with Tokio and Futures
Other
212 stars 33 forks source link

telebot::error::Error should implement std::error::Error #16

Closed tecywiz121 closed 6 years ago

tecywiz121 commented 6 years ago

Like it says in the Title, I think telebot::error::Error should probably implement std::error::Error. That'll let it work with the error_chain crate.

bytesnake commented 6 years ago

Yes the library does not interop nicely with other errors. In future I want to use failure to handle the error enum, but it is not yet implemented. I'll try to update the implementation in the next days.