mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
logging decode uri errors
This commit is contained in:
parent
75ba9905b4
commit
72aefca297
2 changed files with 8 additions and 2 deletions
|
@ -297,7 +297,13 @@ app.get('/ask', function (req, res) {
|
|||
} else {
|
||||
if (req.query.q && req.query.data) {
|
||||
let subj = req.query.subj || ''
|
||||
let question = decodeURIComponent(req.query.q)
|
||||
let question
|
||||
try {
|
||||
question = decodeURIComponent(req.query.q)
|
||||
} catch (e) {
|
||||
console.err(req.query)
|
||||
throw e
|
||||
}
|
||||
let recData = {}
|
||||
try {
|
||||
recData = JSON.parse(req.query.data)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e84ff4451251f3e8403ebb8b31ebd13d7830e44a
|
||||
Subproject commit a117239f35610520706e402382c3911d422d743e
|
Loading…
Add table
Add a link
Reference in a new issue