From 19e07485bc5b68581cc1421e76838c672aa71c0a Mon Sep 17 00:00:00 2001 From: Michael Mazour Date: Fri, 18 May 2018 15:08:33 +0100 Subject: [PATCH] Handle error in ExportsController --- .../web/app/coffee/Features/Exports/ExportsController.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/coffee/Features/Exports/ExportsController.coffee b/services/web/app/coffee/Features/Exports/ExportsController.coffee index cda2296249..b60f58ba20 100644 --- a/services/web/app/coffee/Features/Exports/ExportsController.coffee +++ b/services/web/app/coffee/Features/Exports/ExportsController.coffee @@ -8,6 +8,7 @@ module.exports = {project_id, brand_variation_id} = req.params user_id = AuthenticationController.getLoggedInUserId(req) ExportsHandler.exportProject project_id, user_id, brand_variation_id, (err, export_data) -> + return next(err) if err? logger.log user_id:user_id project_id: project_id