aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-02-23 18:48:34 +0100
committerHarald Eilertsen <haraldei@anduin.net>2019-02-23 18:54:48 +0100
commitcdcd645dc455a0778b91b3f7d051dbfb37c8755d (patch)
tree3b132d983cae541fb228235d6ee18b1280a05393 /src/lib.rs
parent1b3cb7522118d711d43ca78d0c5d7e71a5afbf46 (diff)
downloadoslobike-cdcd645dc455a0778b91b3f7d051dbfb37c8755d.tar.gz
oslobike-cdcd645dc455a0778b91b3f7d051dbfb37c8755d.tar.bz2
oslobike-cdcd645dc455a0778b91b3f7d051dbfb37c8755d.zip
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.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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