From 2819f54a35b022aec2a8098d03fc95a2e2c4e40c Mon Sep 17 00:00:00 2001 From: milarin Date: Tue, 17 Jan 2023 16:58:14 +0100 Subject: [PATCH] debug --- anilist.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anilist.go b/anilist.go index 09b1d9f..bcb487d 100644 --- a/anilist.go +++ b/anilist.go @@ -2,6 +2,7 @@ package logic import ( "context" + "fmt" "git.milar.in/milarin/anilist" "git.milar.in/milarin/channel" @@ -58,7 +59,7 @@ func SearchAnimeByTitle(title string) (anime *anilist.Media, err error) { anime = anilist.NewApi(token).GetMedia(context.Background(), anilist.MediaQuery{ Search: title, Type: anilist.MediaTypeAnime, - }, nil).First() + }, func(err error) { fmt.Println(err) }).First() if anime == nil { return nil, ErrAnimeNotFound.New(title)