diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index 2ed3e04..a936736 100644 --- a/src/error.rs +++ b/src/error.rs @@ -8,12 +8,20 @@ error_chain!{ errors { /// Error kind indicating that the JSON parser failed - ParserError {} + ParserError { + description("Failed to create a Task from JSON") + } /// Error kind indicating that the Reader failed to read something - ReaderError {} + ReaderError { + description("Failed to read tasks from a Reader") + } /// Error kind indicating that a call to the task warrior binary failed - TaskCmdError {} + TaskCmdError { + description("There was a problem while calling the external 'task' binary") + } /// Error kind indicating that a conversion to JSON failed - SerializeError {} + SerializeError { + description("A Task could not be converted to JSON") + } } } |