Commit 3ae95c53 authored by anton's avatar anton

Return error messages from Auth0

parent 976c18eb
Pipeline #53524 failed
......@@ -141,7 +141,7 @@ class Manage extends TinyEmitter {
send(res, 200, result.data)
}
catch (err) {
if (err.response) send(res, err.response.status)
if (err.response) send(res, err.response.status, err.response.data)
else {
console.error(`PUT /manage/${req.params.id}`, err.message)
send(res, 500)
......@@ -163,7 +163,7 @@ class Manage extends TinyEmitter {
send(res, 200, isAdmin(req) ? result.data : filterAttributes(result.data, true))
}
catch (err) {
if (err.response) send(res, err.response.status)
if (err.response) send(res, err.response.status, err.response.data)
else {
console.error(`PATCH /manage/${req.params.id}`, err.message)
send(res, 500)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment