Skip to content

Commit

Permalink
Customized error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Jun 27, 2024
1 parent bf3aac0 commit 3539fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/premis/premis.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func ParseFile(filePath string) (*etree.Document, error) {

err := doc.ReadFromFile(filePath)
if err != nil {
return nil, err
return nil, fmt.Errorf("parse XML: %v", err)

Check warning on line 70 in internal/premis/premis.go

View check run for this annotation

Codecov / codecov/patch

internal/premis/premis.go#L68-L70

Added lines #L68 - L70 were not covered by tests
}

doc.Indent(2)

Check warning on line 73 in internal/premis/premis.go

View check run for this annotation

Codecov / codecov/patch

internal/premis/premis.go#L73

Added line #L73 was not covered by tests
Expand Down

0 comments on commit 3539fd5

Please sign in to comment.