summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormario <mario-krehl@gmx.de>2016-07-04 15:14:09 +0200
committermario <mario-krehl@gmx.de>2016-07-04 15:14:09 +0200
commit7f11757d514bbc322a8671df9dcebe45a3861e74 (patch)
treebe2a171f765a179178354bda1610c279be589e16 /src
parente8d2a54607dd9c31327b4cb22288a78f3e7f3c31 (diff)
added TaskErrorKind::ReaderError for Error Handling in import_tasks()
Diffstat (limited to 'src')
-rw-r--r--src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 78eaddc..c2aac38 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -15,12 +15,16 @@ pub enum TaskErrorKind {
/// Error kind indicating that the Status of a task is missing
NoStatus,
+
+ /// Error kind indicating that the Reader failed to read something
+ ReaderError,
}
fn store_error_type_as_str(e: &TaskErrorKind) -> &'static str {
match e {
&TaskErrorKind::ParserError => "Parser Error",
&TaskErrorKind::NoStatus => "Task status is missing",
+ &TaskErrorKind::ReaderError => "Reader Error",
}
}