Skip to content

Commit

Permalink
add 400 error to status
Browse files Browse the repository at this point in the history
Co-Authored-By: okanji <[email protected]>
  • Loading branch information
chadfawcett and okanji authored Jan 3, 2019
1 parent 3469788 commit 8db72b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ app.post('/', function(req, res) {

// Make sure the email message is not empty
if (!emailMessage) {
res.send({
res.status(400).send({
error: 'Error, email message is empty'
});
return;
Expand Down

0 comments on commit 8db72b7

Please sign in to comment.