.
Some checks failed
TenorJS-v2 Deploy Automation / build (push) Failing after 0s

This commit is contained in:
Skylar Grant 2024-09-22 19:33:12 -04:00
parent 34fd5f133d
commit 1bc2e031e0

View File

@ -91,7 +91,7 @@ class Tenor {
resolve(gifs);
}).catch(error => {
if (error.response.status >= 400 && error.response.status <= 499) {
return reject(new Error('Invalid API Key Provided: ' + this.token));
return reject(new Error(`Invalid API Key Provided: ${this.token}`));
}
return reject(error);
});