From 8b02ba95b61b3c6630ff4c8c90edcee16c84cf8e 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 6cf679c6c1..29677e1dc5 100644 --- a/services/docstore/app/coffee/DocManager.coffee +++ b/services/docstore/app/coffee/DocManager.coffee @@ -33,6 +33,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)