Unify error messages
This commit is contained in:
2
icon.go
2
icon.go
@@ -28,7 +28,7 @@ func (i *Icon) Check() error {
|
||||
return errors.New("uri element of icon empty")
|
||||
} else {
|
||||
if !isValidIRI(i.URI) {
|
||||
return fmt.Errorf("uri attribute %v of icon not correctly formatted", i.URI)
|
||||
return fmt.Errorf("uri attribute of icon %v not correctly formatted", i)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user