File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class MobyGamesAPI extends APIModel {
2222 console . log ( `MDB | api "${ this . apiName } " queried by Title` ) ;
2323
2424 if ( ! this . plugin . settings . MobyGamesKey ) {
25- throw Error ( `MDB | MobyGames ${ this . apiName } API key missing.` ) ;
25+ throw Error ( `MDB | ${ this . apiName } API key missing.` ) ;
2626 }
2727
2828 const searchUrl = `${ this . apiUrl } /games?title=${ encodeURIComponent ( title ) } &api_key=${ this . plugin . settings . MobyGamesKey } ` ;
@@ -65,7 +65,7 @@ export class MobyGamesAPI extends APIModel {
6565 console . log ( `MDB | api "${ this . apiName } " queried by ID` ) ;
6666
6767 if ( ! this . plugin . settings . MobyGamesKey ) {
68- throw Error ( `MDB | MobyGames ${ this . apiName } API key missing.` ) ;
68+ throw Error ( `MDB | ${ this . apiName } API key missing.` ) ;
6969 }
7070
7171 const searchUrl = `${ this . apiUrl } /games?id=${ encodeURIComponent ( id ) } &api_key=${ this . plugin . settings . MobyGamesKey } ` ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export class OMDbAPI extends APIModel {
2929 console . log ( `MDB | api "${ this . apiName } " queried by Title` ) ;
3030
3131 if ( ! this . plugin . settings . OMDbKey ) {
32- throw Error ( `MDB | OMDb ${ this . apiName } API key missing.` ) ;
32+ throw Error ( `MDB | ${ this . apiName } API key missing.` ) ;
3333 }
3434
3535 const searchUrl = `https://www.omdbapi.com/?s=${ encodeURIComponent ( title ) } &apikey=${ this . plugin . settings . OMDbKey } ` ;
@@ -107,7 +107,7 @@ export class OMDbAPI extends APIModel {
107107 console . log ( `MDB | api "${ this . apiName } " queried by ID` ) ;
108108
109109 if ( ! this . plugin . settings . OMDbKey ) {
110- throw Error ( `MDB | OMDb ${ this . apiName } API key missing.` ) ;
110+ throw Error ( `MDB | ${ this . apiName } API key missing.` ) ;
111111 }
112112
113113 const searchUrl = `https://www.omdbapi.com/?i=${ encodeURIComponent ( id ) } &apikey=${ this . plugin . settings . OMDbKey } ` ;
You can’t perform that action at this time.
0 commit comments