Add missing error-forwarding
This commit is contained in:
parent
38b9e15615
commit
1a8106dfd2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue