From 7f11757d514bbc322a8671df9dcebe45a3861e74 Mon Sep 17 00:00:00 2001 From: mario Date: Mon, 4 Jul 2016 15:14:09 +0200 Subject: added TaskErrorKind::ReaderError for Error Handling in import_tasks() --- src/error.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/error.rs') 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", } } -- cgit v1.2.3