diff options
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/post.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/post.js b/controllers/post.js index 45da525..30d0002 100644 --- a/controllers/post.js +++ b/controllers/post.js @@ -30,7 +30,7 @@ module.exports = { newPost.save() .then(() => res.redirect('/')) .catch(err => { - console.log(err); + req.setOldForm(err); res.redirect('/new-post'); }); }, |