catch the error
This commit is contained in:
parent
56f0460509
commit
f731474dce
1 changed files with 3 additions and 1 deletions
|
|
@ -1918,8 +1918,10 @@ module.exports = async (
|
||||||
|
|
||||||
console.log('NEWFOLLOW POSTED')
|
console.log('NEWFOLLOW POSTED')
|
||||||
|
|
||||||
return res.status(200).send()
|
return res.status(200)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
process.exit(1)
|
||||||
return res.status(500).json({
|
return res.status(500).json({
|
||||||
errorMessage: err.message || 'Unknown error inside /api/gun/follow'
|
errorMessage: err.message || 'Unknown error inside /api/gun/follow'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue