diff options
Diffstat (limited to 'src/errors.rs')
| -rw-r--r-- | src/errors.rs | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/errors.rs b/src/errors.rs index 5f09c27..c2048e9 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,3 +1,5 @@ +use chrono; +use magic_crypt;  use xdg;  error_chain! { @@ -15,3 +17,18 @@ quick_error! {          }      }  } + +quick_error! { +    #[derive(Debug)] +    pub enum DateCryptError { +        DateParse(err: chrono::format::ParseError) { +            from() +            cause(err) +            display("unable to parse timestamp") +        } +        Decrypt(err: magic_crypt::Error) { +            from() +            display("unable to read trial key") +        } +    } +} | 
