Fix Tenor error messages

This commit is contained in:
Essem 2022-08-11 14:49:07 -05:00
parent 92d34a6921
commit fe3886b32f
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {