From cdcd645dc455a0778b91b3f7d051dbfb37c8755d Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 23 Feb 2019 18:48:34 +0100 Subject: Propagate errors from api calls to caller. This defines an ApiResult type, and a corresponding Error type which wraps any errors that can be returned from underlying libs. Prevents panics due to unwraps in the core api. The main app still unwraps, and will panic on any error, though. Fix that later. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1968e0a..c08c2cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,7 @@ */ mod api; +mod error; mod station; // Re export the important parts of the API -- cgit v1.2.3