more detailed warn logs

This commit is contained in:
Mystikfluu 2022-07-26 01:13:33 +02:00
parent 285c371f27
commit e6b68bb121

View File

@ -19,6 +19,7 @@ module.exports = {
return
}
if(!((typeof req.body.value) in allowed_settings[req.body.setting])) {
console.log(5,"incorrect type given, received, expected", typeof req.body.value, allowed_settings[req.body.setting])
res.json({"error":"no new setting value given"})
return
}