Use new Error construct and reverted and oversight

Forgot to revert searchbyid for Mobygames
This commit is contained in:
ltctceplrm 2024-08-22 14:46:53 +02:00
parent 552e921d53
commit 08ca5e122f
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ export class OMDbAPI extends APIModel {
console.log(`MDB | api "${this.apiName}" queried by Title`);
if (!this.plugin.settings.OMDbKey) {
console.error(Error(`MDB | API key for ${this.apiName} missing.`));
console.error(new Error(`MDB | API key for ${this.apiName} missing.`));
return [];
}