Merge pull request #576 from sharelatex/mm-handle-export-error

Handle error in ExportsController
This commit is contained in:
Hayden Faulds 2018-05-25 13:22:18 +01:00 committed by GitHub
commit 29f7ce0bbf

View file

@ -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