From 2854d0252cb780f8fe4c2109f065467ec37317f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 3 Nov 2017 08:48:13 +0100 Subject: [PATCH] Fix typo --- 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 9bb23dac..96a66e37 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -614,7 +614,7 @@ function augmentError (options) { return function mapError (err, req, res, next) { const { mapconfig } = res.locals; - if (augmentError) { + if (addContext) { err = Number.isFinite(err.layerIndex) ? populateError(err, mapconfig) : err; }