mirror of
https://github.com/wasnertobias/StalkingAId.git
synced 2025-10-16 11:55:43 +00:00
improve error logging
This commit is contained in:
parent
4d326a0d83
commit
cb7bf40ec5
@ -85,6 +85,7 @@ async function getResponse(history, res) {
|
||||
})
|
||||
res.status(200).end(history);
|
||||
} catch(error) {
|
||||
console.error(error);
|
||||
console.error(error.response.status, error.response.data);
|
||||
res.status(error.response.status).json(error.response.data);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user