summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-09-30 20:54:09 +0200
committerGitHub <noreply@github.com>2018-09-30 20:54:09 +0200
commit8a27bab6cb60f479cdf7233732c624ba9539a594 (patch)
tree8954437b2fc97acd703a104e3f1529ec9f792e97 /src
parente412183e2a52fdad7936b30208e14bdbed576cef (diff)
parent3193ea6e206c042a424db8b1da250939a9dba82a (diff)
Merge pull request #76 from maralorn/error-descriptions
Add error descriptions
Diffstat (limited to 'src')
-rw-r--r--src/error.rs16
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")
+ }
}
}