Skip to content

Commit

Permalink
add some error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
LordNoteworthy committed Aug 3, 2022
1 parent 588e3b5 commit 3389627
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ func (pe *File) Parse() error {
}

// Parse the Rich header.
_ = pe.ParseRichHeader()
err = pe.ParseRichHeader()
if err != nil {
pe.logger.Errorf("rich header parsing failed: %v", err)
}

// Parse the NT header.
err = pe.ParseNTHeader()
Expand All @@ -175,7 +178,10 @@ func (pe *File) Parse() error {
}

// Parse COFF symbol table.
_ = pe.ParseCOFFSymbolTable()
err = pe.ParseCOFFSymbolTable()
if err != nil {
pe.logger.Errorf("coff symbols parsing failed: %v", err)
}

// Parse the Section Header.
err = pe.ParseSectionHeader()
Expand Down

0 comments on commit 3389627

Please sign in to comment.