mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
fix reddit error messages
This commit is contained in:
parent
02a91227d0
commit
9e9c53e1bd
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ module.exports = {
|
||||||
});
|
});
|
||||||
}catch(e){
|
}catch(e){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
if(e.response && e.response.body.message) return editOrReply(context, {embeds:[createEmbed("error", context, e.response.body.message)]})
|
||||||
return editOrReply(context, {embeds:[createEmbed("error", context, `Unable to perform reddit search.`)]})
|
return editOrReply(context, {embeds:[createEmbed("error", context, `Unable to perform reddit search.`)]})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue