diff options
author | rabite <rabite@posteo.de> | 2019-04-02 22:17:07 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-04-02 22:17:07 +0200 |
commit | e99a3d993cc401720dc5f1c649cd3436fb47d3b3 (patch) | |
tree | 13b6f35b90dbc0616869581408336934de7c563c /src/fail.rs | |
parent | ed32c83aca9acf40b09c5fb4e7a24cbc2d76d7c9 (diff) |
move widgets/files around instead of caching
Diffstat (limited to 'src/fail.rs')
-rw-r--r-- | src/fail.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fail.rs b/src/fail.rs index ea5a4a7..1d5736d 100644 --- a/src/fail.rs +++ b/src/fail.rs @@ -84,7 +84,9 @@ pub enum HError { #[fail(display = "{}", _0)] Log(String), #[fail(display = "Metadata already processed")] - MetadataProcessedError + MetadataProcessedError, + #[fail(display = "No files to take from widget")] + WidgetNoFilesError, } impl HError { @@ -158,6 +160,10 @@ impl HError { pub fn metadata_processed<T>() -> HResult<T> { Err(HError::MetadataProcessedError) } + + pub fn no_files<T>() -> HResult<T> { + Err(HError::WidgetNoFilesError) + } } |