Skip to content

Commit fee5960

Browse files
committed
print log
1 parent 1ce03d0 commit fee5960

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

security.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ func (pe *File) parseSecurityDirectory(rva, size uint32) error {
386386

387387
// Verify the signature. This will also verify the chain of trust of the
388388
// the end-entity signer cert to one of the root in the trust store.
389-
if err == nil {
389+
if err != nil {
390+
pe.logger.Errorf("failed to loadSystemRoots: %v", err)
391+
} else {
390392
err = pkcs.VerifyWithChain(certPool)
391393
if err == nil {
392394
certValid = true

0 commit comments

Comments
 (0)