?
This commit is contained in:
parent
880ee2997b
commit
383353ecf1
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ export default (req, res) => {
|
|||
|
||||
if (!email) {
|
||||
res.statusCode = 400;
|
||||
res.json({ error: true });
|
||||
res.json({ error: 'no email passed to api' });
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,6 @@ export default (req, res) => {
|
|||
}
|
||||
|
||||
res.statusCode = 400;
|
||||
res.json({ error });
|
||||
res.json({ error: JSON.stringify(error) });
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue