summaryrefslogtreecommitdiff
path: root/bucky/app
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-01-08 15:18:18 +0100
committerJules Laplace <julescarbon@gmail.com>2018-01-08 15:18:18 +0100
commit9baea1263a1cd3961545d2b5c0ac0fc1190a084d (patch)
tree869f3125a82ad77b0f7f36fe8f95e2a641ba5b33 /bucky/app
parent66d405fe450ff24e796520c5fb71bff59cbd1804 (diff)
redirect to index after deleting post
Diffstat (limited to 'bucky/app')
-rw-r--r--bucky/app/bucky.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index c85ef45..940e02d 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -249,7 +249,7 @@ var bucky = module.exports = {
var promises = [ threadPromise ].concat(commentPromises).concat(filePromises)
Promise.all(promises).then( () => {
next()
- }).catch( () => {
+ }).catch( (err) => {
res.sendStatus(500)
})
},