diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2018-04-29 20:06:59 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2018-04-29 20:06:59 +0200 |
commit | 3193ea6e206c042a424db8b1da250939a9dba82a (patch) | |
tree | 38f22e9caa458832cc75312ec3ae849a212faea3 | |
parent | 3a61225d9d434d4d1f8787649b439f56b073f1a7 (diff) |
Add error descriptions
-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") + } } } |