Skip to content

Commit

Permalink
fix(backend): fix getShowByTvdbId() error message (#1314) [skip ci]
Browse files Browse the repository at this point in the history
* fix(backend): fix getShowByTvdbId() error message

* fix(backend): use suggested error message
  • Loading branch information
TheCatLady committed Mar 31, 2021
1 parent 86d6a25 commit fe8d346
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/api/themoviedb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import {
TmdbNetwork,
TmdbPersonCombinedCredits,
TmdbPersonDetail,
TmdbProductionCompany,
TmdbRegion,
TmdbSearchMovieResponse,
TmdbSearchMultiResponse,
TmdbSearchTvResponse,
TmdbSeasonWithEpisodes,
TmdbTvDetails,
TmdbUpcomingMoviesResponse,
TmdbProductionCompany,
} from './interfaces';

interface SearchOptions {
Expand Down Expand Up @@ -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}`
Expand Down

0 comments on commit fe8d346

Please sign in to comment.