mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
remove pointless error logs
This commit is contained in:
parent
08109bd37b
commit
33d518b262
8 changed files with 4 additions and 10 deletions
|
@ -90,8 +90,8 @@ module.exports = {
|
|||
pages: formatPaginationEmbeds(pages)
|
||||
});
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("warning", context, e.response.body.message))
|
||||
console.log(e)
|
||||
return editOrReply(context, createEmbed("error", context, `Unable to perform dictionary lookup.`))
|
||||
}
|
||||
},
|
||||
|
|
|
@ -52,7 +52,6 @@ module.exports = {
|
|||
}
|
||||
})))
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
pages.push(page(createEmbed("default", context, {
|
||||
description: codeblock("tex", [t]),
|
||||
author: {
|
||||
|
|
|
@ -64,8 +64,8 @@ module.exports = {
|
|||
}
|
||||
}))
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("error", context, `Unable to translate text.`))
|
||||
console.log(e)
|
||||
return editOrReply(context, createEmbed("error", context, `Something went wrong.`))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,7 +83,6 @@ module.exports = {
|
|||
}))
|
||||
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
return editOrReply(context, createEmbed("error", context, `Unable to scan qr codes.`))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,8 +64,8 @@ module.exports = {
|
|||
}
|
||||
}))
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("error", context, `Unable to translate text.`))
|
||||
console.log(e)
|
||||
return editOrReply(context, createEmbed("error", context, `Something went wrong.`))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,6 @@ module.exports = {
|
|||
|
||||
return editOrReply(context, e)
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
return editOrReply(context, createEmbed("warning", context, `No weather data available for given location.`))
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue