Sfoglia il codice sorgente

Handle error in ExportsController

Michael Mazour 8 anni fa
parent
commit
19e07485bc

+ 1 - 0
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