Add error kind: Create errors

This commit is contained in:
Matthias Beyer 2016-01-18 23:00:39 +01:00
parent 80b0501d03
commit 0c3bcc3f15
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ pub enum StoreErrorKind {
FileNotFound,
FileNotCreated,
StorePathExists,
StorePathCreate,
// 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::FileNotCreated => "File corresponding to ID could not be created",
&StoreErrorKind::StorePathExists => "Store path exists",
&StoreErrorKind::StorePathCreate => "Store path create",
}
}