This commit is contained in:
parent
34fd5f133d
commit
1bc2e031e0
@ -91,7 +91,7 @@ class Tenor {
|
|||||||
resolve(gifs);
|
resolve(gifs);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
if (error.response.status >= 400 && error.response.status <= 499) {
|
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);
|
return reject(error);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user