Adjust for new error linking setup in libimagentryref

This commit is contained in:
Matthias Beyer 2017-09-23 21:09:19 +02:00
parent cac7697054
commit 2ce75251d9

View file

@ -51,7 +51,7 @@ impl Hasher for MailHasher {
use email::Header;
let mut s = String::new();
try!(c.read_to_string(&mut s).chain_err(|| REK::UTF8Error).chain_err(|| REK::IOError));
try!(c.read_to_string(&mut s));
MimeMessage::parse(&s)
.chain_err(|| REK::RefHashingError)