From a4b2044e10b475a0f86eabdc9aad41acab0ad106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 31 Oct 2017 15:58:41 +0100 Subject: [PATCH] missing early return --- lib/cartodb/controllers/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index 5f4f6e45..26653ad3 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -292,7 +292,7 @@ MapController.prototype.instantiateTemplate = function(req, res, prepareParamsFn function finishTemplateInstantiation(err) { if (err) { err.label = 'NAMED MAP LAYERGROUP'; - next(err); + return next(err); } const { layergroup } = res.locals;