From 1bc2e031e0215464752625a1ad17c31aa1c9bca6 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 22 Sep 2024 19:33:12 -0400 Subject: [PATCH] . --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6d9f563..2c02a1c 100644 --- a/src/index.js +++ b/src/index.js @@ -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); });