aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/post.js2
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');
});
},