Fix missing error interface for DupesError

This commit is contained in:
ekzyis 2024-04-07 05:27:37 +02:00
parent 2a663690a8
commit 17878b2f32
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ type DupesError struct {
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) {
if query == nil {
query = &ItemsQuery{}