Add missing error-forwarding

This commit is contained in:
Matthias Beyer 2016-03-01 21:20:53 +01:00
parent 38b9e15615
commit 1a8106dfd2

View file

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