diff options
Diffstat (limited to 'manga/manga.go')
-rw-r--r-- | manga/manga.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/manga/manga.go b/manga/manga.go index 0fd7853..f50f6e2 100644 --- a/manga/manga.go +++ b/manga/manga.go @@ -18,7 +18,6 @@ package manga import ( "encoding/json" - "errors" "fmt" "strconv" e "github.com/MikunoNaka/MAL2Go/errhandlers" @@ -115,7 +114,7 @@ func (c Client) GetMangaRanking(rankingType string, limit, offset int, fields [] // if ranking type is invalid if !e.IsValidMangaRankingType(rankingType) { - return mangaRanking, errors.New(fmt.Sprintf("GetMangaRanking: Invalid ranking type specified: \"%s\"", rankingType)) + return mangaRanking, e.InvalidRankingError } endpoint, _ := u.UrlGenerator( |