fix bot crashing when very specific errors get thrown

This commit is contained in:
bignutty 2025-02-22 13:41:38 +01:00
parent f642054f0d
commit 2e523b1dad
2 changed files with 10 additions and 5 deletions

View file

@ -26,8 +26,8 @@ module.exports.maintower = async function (packages, type){
if(res.body.status == 0) return res.body.id;
throw res.body.message
}catch(e){
console.log(e)
throw "Maintower request failed."
console.log(packages)
console.error("Maintower request failed.")
}
}
@ -42,7 +42,7 @@ module.exports.basecamp = async function (log, content = ""){
.send({log, content})
return;
}catch(e){
console.log(e)
throw "Basecamp request failed."
console.log(log)
console.error("Basecamp request failed.");
}
}