This commit is contained in:
Sean Yesmunt 2021-03-27 19:37:51 -04:00
parent 880ee2997b
commit 383353ecf1

View file

@ -23,7 +23,7 @@ export default (req, res) => {
if (!email) { if (!email) {
res.statusCode = 400; res.statusCode = 400;
res.json({ error: true }); res.json({ error: 'no email passed to api' });
return; return;
} }
@ -48,6 +48,6 @@ export default (req, res) => {
} }
res.statusCode = 400; res.statusCode = 400;
res.json({ error }); res.json({ error: JSON.stringify(error) });
}); });
}; };