Add error kind: Create errors
This commit is contained in:
parent
80b0501d03
commit
0c3bcc3f15
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue