Fix missing error interface for DupesError
This commit is contained in:
parent
2a663690a8
commit
17878b2f32
4
items.go
4
items.go
|
@ -93,6 +93,10 @@ type DupesError struct {
|
||||||
Dupes []Dupe
|
Dupes []Dupe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e *DupesError) Error() string {
|
||||||
|
return fmt.Sprintf("found %d dupes for %s", len(e.Dupes), e.Url)
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Client) Items(query *ItemsQuery) (*ItemsCursor, error) {
|
func (c *Client) Items(query *ItemsQuery) (*ItemsCursor, error) {
|
||||||
if query == nil {
|
if query == nil {
|
||||||
query = &ItemsQuery{}
|
query = &ItemsQuery{}
|
||||||
|
|
Loading…
Reference in New Issue