Fix Tenor error messages
This commit is contained in:
parent
92d34a6921
commit
fe3886b32f
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue