From fe8d34607b07095dce51b29ef7aaae0485573f14 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Wed, 31 Mar 2021 07:11:47 -0400 Subject: [PATCH] fix(backend): fix getShowByTvdbId() error message (#1314) [skip ci] * fix(backend): fix getShowByTvdbId() error message * fix(backend): use suggested error message --- server/api/themoviedb/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/api/themoviedb/index.ts b/server/api/themoviedb/index.ts index e98ebb7e..c52e971b 100644 --- a/server/api/themoviedb/index.ts +++ b/server/api/themoviedb/index.ts @@ -11,6 +11,7 @@ import { TmdbNetwork, TmdbPersonCombinedCredits, TmdbPersonDetail, + TmdbProductionCompany, TmdbRegion, TmdbSearchMovieResponse, TmdbSearchMultiResponse, @@ -18,7 +19,6 @@ import { TmdbSeasonWithEpisodes, TmdbTvDetails, TmdbUpcomingMoviesResponse, - TmdbProductionCompany, } from './interfaces'; interface SearchOptions { @@ -614,9 +614,7 @@ class TheMovieDb extends ExternalAPI { return tvshow; } - throw new Error( - `[TMDb] Failed to find a TV show with the provided TVDB ID: ${tvdbId}` - ); + throw new Error(`No show returned from API for ID ${tvdbId}`); } catch (e) { throw new Error( `[TMDb] Failed to get TV show using the external TVDB ID: ${e.message}`