aboutsummaryrefslogtreecommitdiff
path: root/request_handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'request_handlers.go')
-rw-r--r--request_handlers.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/request_handlers.go b/request_handlers.go
index 2c23afb..adf5535 100644
--- a/request_handlers.go
+++ b/request_handlers.go
@@ -88,8 +88,7 @@ func (c Client) delete(endpoint string) error {
// if anime wasn't in the list from the start
if res.StatusCode == 404 {
- // TODO: write better error message
- return errors.New("anime not in list")
+ return ErrAnimeNotInList
}
return nil