From f4051d90a3e0520017020a145c1ccd129bb27aa3 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 15 Aug 2023 14:19:33 +0530 Subject: added validators for updating anime and manga --- request_handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'request_handlers.go') 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 -- cgit v1.2.3