mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix error logging
This commit is contained in:
parent
709756b8e1
commit
ad0997adfb
21 changed files with 49 additions and 49 deletions
|
@ -126,7 +126,7 @@ function removeUser (req: express.Request, res: express.Response, next: express.
|
|||
.then(user => user.destroy())
|
||||
.then(() => res.sendStatus(204))
|
||||
.catch(err => {
|
||||
logger.error('Errors when removed the user.', { error: err })
|
||||
logger.error('Errors when removed the user.', err)
|
||||
return next(err)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue