From 6a64a3ab9227474c5766f902db1c682129439ab5 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 16 Sep 2014 21:45:46 -0400 Subject: [PATCH] check err --- src/categories/delete.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/categories/delete.js b/src/categories/delete.js index c4dfc06c21..6328817ecc 100644 --- a/src/categories/delete.js +++ b/src/categories/delete.js @@ -18,6 +18,9 @@ module.exports = function(Categories) { threadTools.purge(tid, 0, next); }, next); }, {alwaysStartAt: 0}, function(err) { + if (err) { + return callback(err); + } purgeCategory(cid, callback); }); };