mirror backend error

This commit is contained in:
bignutty 2024-07-24 15:11:19 +02:00
parent 2af3838136
commit 36d1a2211b
2 changed files with 2 additions and 0 deletions

View file

@ -79,6 +79,7 @@ module.exports = {
pages: formatPaginationEmbeds(pages)
});
} catch (e) {
if(e.response.body?.error) return editOrReply(context, createEmbed("warning", context, e.response.body.error.message))
console.log(e)
return editOrReply(context, createEmbed("error", context, `Unable to perform Wolfram|Alpha search.`))
}