Add missing error-forwarding

This commit is contained in:
Matthias Beyer 2016-03-01 21:20:53 +01:00
parent 38b9e15615
commit 1a8106dfd2
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ fn verify_header(t: &Table) -> Result<()> {
fn verify_header_consistency(t: Table) -> EntryResult<Table> {
use std::error::Error;
if let Err(e) = verify_header(&t) {
Err(ParserError::new(ParserErrorKind::HeaderInconsistency, None))
Err(ParserError::new(ParserErrorKind::HeaderInconsistency, Some(Box::new(e))))
} else {
Ok(t)
}