Fix Tenor error messages
This commit is contained in:
parent
92d34a6921
commit
fe3886b32f
|
@ -62,7 +62,7 @@ const getImage = async (image, image2, video, extraReturnTypes, gifv = false, ty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const json = await data.body.json();
|
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;
|
payload.path = json.results[0].media_formats.gif.url;
|
||||||
}
|
}
|
||||||
} else if (giphyURLs.includes(host)) {
|
} else if (giphyURLs.includes(host)) {
|
||||||
|
|
Loading…
Reference in New Issue