1
0
mirror of https://github.com/Foltik/Shimapan synced 2025-01-05 15:58:03 -05:00

Change json parse error code to 500

This commit is contained in:
Jack Foltz 2018-01-14 09:23:51 -05:00
parent 0c12f246d2
commit c09aaf55ec
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -20,7 +20,7 @@ router.post('/create', function (req, res) {
try {
scope = JSON.parse(req.body.scope);
} catch (e) {
res.status(400).json({'message': e.name + ': ' + e.message});
res.status(500).json({'message': e.name + ': ' + e.message});
return;
}