diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-04-25 12:54:00 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-04-25 12:54:01 +0200 |
commit | abc142f4b58a9c4602ec5815e17bdd34a8681206 (patch) | |
tree | d1f0205ef07051f453e36b8c650ca1c00ebffc78 /lib/domain/libimagcontact/src/error.rs | |
parent | 3eab3af7b08789ac2e0c7765a104c20ff9788ba7 (diff) |
Rewrite library
libimagcontact stores all contact information in the entry header now.
Diffstat (limited to 'lib/domain/libimagcontact/src/error.rs')
-rw-r--r-- | lib/domain/libimagcontact/src/error.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/domain/libimagcontact/src/error.rs b/lib/domain/libimagcontact/src/error.rs index eb44b3b2..8eb757b5 100644 --- a/lib/domain/libimagcontact/src/error.rs +++ b/lib/domain/libimagcontact/src/error.rs @@ -32,6 +32,8 @@ error_chain! { foreign_links { Io(::std::io::Error); + TomlDe(::toml::de::Error); + TomlSer(::toml::ser::Error); TomlQueryError(::toml_query::error::Error); UuidError(::uuid::ParseError); } @@ -43,14 +45,19 @@ error_chain! { display("Type error in header, expected {} at '{}', found other type", ty, loc) } + HeaderDataMissing(datapath: &'static str) { + description("Data missing in header") + display("Data missing in header at '{}'", datapath) + } + EntryNotFound(sid: StoreId) { description("Entry not found with StoreId") display("Entry {:?} not found", sid) } - UidMissing(path: String) { + UidMissing(buf: String) { description("Vcard object has no UID") - display("Vcard at {:?} has no UID", path) + display("Vcard has no UID : {}", buf) } } |