Add hasAlternateDuplicateLinks check to entry
This commit is contained in:
2
feed.go
2
feed.go
@@ -170,7 +170,7 @@ func (f *Feed) Check() error {
|
||||
}
|
||||
}
|
||||
if hasAlternateDuplicateLinks(f.Links) {
|
||||
return errors.New("links with with a rel attribute value of \"alternate\" and duplicate type and hreflang attribute values found")
|
||||
return fmt.Errorf("links with with a rel attribute value of \"alternate\" and duplicate type and hreflang attribute values found in feed %v", f.ID.URI)
|
||||
}
|
||||
|
||||
if f.Logo != nil {
|
||||
|
Reference in New Issue
Block a user