mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
mirror backend error
This commit is contained in:
parent
2af3838136
commit
36d1a2211b
2 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,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.`))
|
||||
}
|
||||
|
|
|
@ -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.`))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue