aboutsummaryrefslogtreecommitdiff
path: root/request_handlers.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 14:19:33 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 14:19:33 +0530
commitf4051d90a3e0520017020a145c1ccd129bb27aa3 (patch)
tree056da5a42467bca5f4df82fed21d399fe935e838 /request_handlers.go
parentd7cf6b9ed5828d8ca5d1e56adf00ff3fd6a5a4ab (diff)
added validators for updating anime and mangav0.0.3
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