Unify error messages
This commit is contained in:
@@ -2,7 +2,6 @@ package atom
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"mime"
|
||||
)
|
||||
@@ -45,7 +44,7 @@ func (i *InlineOtherContent) Check() error {
|
||||
}
|
||||
|
||||
if isCompositeMediaType(mediaType) {
|
||||
return errors.New("type attribute of inline other content must not be a composite type")
|
||||
return fmt.Errorf("type attribute of inline other content %v must not be a composite type", i)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user