Skip to content

Commit 642aa02

Browse files
committed
remove extra logging
1 parent f488018 commit 642aa02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/apis/MobyGamesAPI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}`;

src/api/apis/OMDbAPI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}`;

0 commit comments

Comments
 (0)