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); }); };