Skip to content

Commit

Permalink
* Adapted error propagation to keep errors for non-parsable VexDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
RingoDev committed Feb 4, 2025
1 parent 764d447 commit 827ac1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vex/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewDocument(filePath string, report *types.Report) (VEX, error) {
}
defer f.Close()

if v, err := decodeVEX(f, filePath, report); err != nil {
if v, errs := decodeVEX(f, filePath, report); errs != nil || v == nil {
return nil, xerrors.Errorf("unable to load VEX: %w", err)
} else {
return v, nil
Expand Down

0 comments on commit 827ac1f

Please sign in to comment.