This commit is contained in:
Daniel García Aubert
2017-12-19 10:54:20 +01:00
parent 34808d6147
commit 326cad2f2c
2 changed files with 3 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ const {
createPositiveNumberValidator,
createIncludesValueValidator,
createAggregationColumnsValidator
} = aggregationValidator;
} = aggregationValidator;
module.exports = class AggregationMapConfig extends MapConfig {
static get PLACEMENTS () {

View File

@@ -117,9 +117,8 @@ module.exports = class AggregationMapConfigAdapter {
const result = res.rows[0] || {};
if (!AggregationMapConfig.supportsGeometryType(result.type)) {
const error = new Error(unsupportedGeometryTypeErrorMessage({
geometryType: result.type
}));
const message = unsupportedGeometryTypeErrorMessage({ geometryType: result.type });
const error = new Error(message);
error.type = 'layer';
error.layer = {
id: mapConfig.getLayerId(index),