From 3a88d7caf02bdb7da3753423d938cbd226879f0c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Apr 2018 00:15:02 +0200 Subject: Add 'error-chain' to the main library Use 'error-chain' here too. Seems like this will be a pretty useful library. Change the include in the 'meetup' `lib.rs` to allow us to export `meetup::Error` instead of `meetup::errors::Error` to be consistent with the error types of the other third-party libraries we're using. --- src/errors.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/errors.rs (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs new file mode 100644 index 0000000..d9e431b --- /dev/null +++ b/src/errors.rs @@ -0,0 +1,6 @@ +error_chain! { + foreign_links { + Meetup(::meetup::Error); + Rss(::rss::Error); + } +} -- cgit v1.2.3