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; }