diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 14:19:33 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 14:19:33 +0530 |
commit | f4051d90a3e0520017020a145c1ccd129bb27aa3 (patch) | |
tree | 056da5a42467bca5f4df82fed21d399fe935e838 /request_handlers.go | |
parent | d7cf6b9ed5828d8ca5d1e56adf00ff3fd6a5a4ab (diff) |
added validators for updating anime and mangav0.0.3
Diffstat (limited to 'request_handlers.go')
-rw-r--r-- | request_handlers.go | 3 |
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 |