more detailed warn logs
This commit is contained in:
parent
285c371f27
commit
e6b68bb121
@ -19,6 +19,7 @@ module.exports = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(!((typeof req.body.value) in allowed_settings[req.body.setting])) {
|
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"})
|
res.json({"error":"no new setting value given"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user