From f731474dcef9e4d33ab565c28da8d2cd8f816095 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sun, 31 May 2020 12:02:00 -0400 Subject: [PATCH] catch the error --- src/routes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index 6df95e30..c6a23875 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1918,8 +1918,10 @@ module.exports = async ( console.log('NEWFOLLOW POSTED') - return res.status(200).send() + return res.status(200) } catch (err) { + console.log(err) + process.exit(1) return res.status(500).json({ errorMessage: err.message || 'Unknown error inside /api/gun/follow' })