From fe3886b32fc59cc781496c9f5f238f9b5619f614 Mon Sep 17 00:00:00 2001 From: Essem Date: Thu, 11 Aug 2022 14:49:07 -0500 Subject: [PATCH] Fix Tenor error messages --- utils/imagedetect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/imagedetect.js b/utils/imagedetect.js index df50d23..87534c4 100644 --- a/utils/imagedetect.js +++ b/utils/imagedetect.js @@ -62,7 +62,7 @@ const getImage = async (image, image2, video, extraReturnTypes, gifv = false, ty } } const json = await data.body.json(); - if (json.error) throw Error(json.error); + if (json.error) throw Error(json.error.message); payload.path = json.results[0].media_formats.gif.url; } } else if (giphyURLs.includes(host)) {