From 7adc67d13aee7ef11a21a9c302bc43064d5381f3 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Fri, 10 Mar 2017 10:36:48 +0000 Subject: [PATCH] add missing error handler --- services/docstore/app/coffee/DocManager.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/docstore/app/coffee/DocManager.coffee b/services/docstore/app/coffee/DocManager.coffee index 875184ca4e..15e14d5428 100644 --- a/services/docstore/app/coffee/DocManager.coffee +++ b/services/docstore/app/coffee/DocManager.coffee @@ -35,6 +35,8 @@ module.exports = DocManager = getAllNonDeletedDocs: (project_id, filter, callback = (error, docs) ->) -> DocArchive.unArchiveAllDocs project_id, (error) -> + if error? + return callback(error) MongoManager.getProjectsDocs project_id, {include_deleted: false}, filter, (error, docs) -> if err? return callback(error)