Add error kind: Create errors

This commit is contained in:
Matthias Beyer 2016-01-18 23:00:39 +01:00
parent 80b0501d03
commit 0c3bcc3f15

View file

@ -16,6 +16,7 @@ pub enum StoreErrorKind {
FileNotFound, FileNotFound,
FileNotCreated, FileNotCreated,
StorePathExists, StorePathExists,
StorePathCreate,
// maybe more // maybe more
} }
@ -28,6 +29,7 @@ fn store_error_type_as_str(e: &StoreErrorKind) -> &'static str {
&StoreErrorKind::FileNotFound => "File corresponding to ID not found", &StoreErrorKind::FileNotFound => "File corresponding to ID not found",
&StoreErrorKind::FileNotCreated => "File corresponding to ID could not be created", &StoreErrorKind::FileNotCreated => "File corresponding to ID could not be created",
&StoreErrorKind::StorePathExists => "Store path exists", &StoreErrorKind::StorePathExists => "Store path exists",
&StoreErrorKind::StorePathCreate => "Store path create",
} }
} }