Merge branch 'master' into 691-date-histogram

This commit is contained in:
Daniel García Aubert
2017-08-01 16:07:27 +02:00
26 changed files with 1357 additions and 251 deletions
+4
View File
@@ -193,6 +193,10 @@ BaseController.prototype.sendError = function(req, res, err, label) {
var statusCode = findStatusCode(err);
if (err.message === 'Tile does not exist' && req.params.format === 'mvt') {
statusCode = 204;
}
debug('[%s ERROR] -- %d: %s, %s', label, statusCode, err, err.stack);
// If a callback was requested, force status to 200