diff --git a/lib/cartodb/controllers/base.js b/lib/cartodb/controllers/base.js index 5072d899..e3d2a407 100644 --- a/lib/cartodb/controllers/base.js +++ b/lib/cartodb/controllers/base.js @@ -331,7 +331,7 @@ function populateTimeoutErrors (errors) { } if (isTimeoutError(error)) { - error.message = 'You are over platform limits. Please contact us to know more details'; + error.message = 'You are over platform\'s limits. Please contact us to know more details'; error.type = 'limit'; error.http_status = 429; } diff --git a/test/acceptance/limits.js b/test/acceptance/limits.js index f4156363..372fb189 100644 --- a/test/acceptance/limits.js +++ b/test/acceptance/limits.js @@ -107,7 +107,7 @@ describe('render limits', function() { function(res) { var parsed = JSON.parse(res.body); assert.deepEqual(parsed.errors, [ - 'You are over platform limits. Please contact us to know more details' + 'You are over platform\'s limits. Please contact us to know more details' ]); done(); } @@ -174,7 +174,7 @@ describe('render limits', function() { function(res) { var parsed = JSON.parse(res.body); assert.deepEqual(parsed.errors, [ - 'You are over platform limits. Please contact us to know more details' + 'You are over platform\'s limits. Please contact us to know more details' ]); done(); } diff --git a/test/acceptance/user-database-timeout-limit.js b/test/acceptance/user-database-timeout-limit.js index 4b9df8a4..e1ff7bda 100644 --- a/test/acceptance/user-database-timeout-limit.js +++ b/test/acceptance/user-database-timeout-limit.js @@ -68,11 +68,11 @@ const createMapConfig = ({ }); const DATASOURCE_TIMEOUT_ERROR = { - errors: ['You are over platform limits. Please contact us to know more details'], + errors: ['You are over platform\'s limits. Please contact us to know more details'], errors_with_context: [{ type: 'limit', subtype: 'datasource', - message: 'You are over platform limits. Please contact us to know more details' + message: 'You are over platform\'s limits. Please contact us to know more details' }] }; @@ -140,11 +140,11 @@ describe('user database timeout limit', function () { this.testClient.getLayergroup(expectedResponse, (err, timeoutError) => { assert.deepEqual(timeoutError, { - errors: [ 'You are over platform limits. Please contact us to know more details' ], + errors: [ 'You are over platform\'s limits. Please contact us to know more details' ], errors_with_context: [{ type: 'limit', subtype: 'datasource', - message: 'You are over platform limits. Please contact us to know more details', + message: 'You are over platform\'s limits. Please contact us to know more details', layer: { id: 'layer0', index: 0, type: 'mapnik' } }] }); @@ -348,11 +348,11 @@ describe('user database timeout limit', function () { this.testClient.getLayergroup(expectedResponse, (err, timeoutError) => { assert.deepEqual(timeoutError, { - errors: [ 'You are over platform limits. Please contact us to know more details' ], + errors: [ 'You are over platform\'s limits. Please contact us to know more details' ], errors_with_context: [{ type: 'limit', subtype: 'datasource', - message: 'You are over platform limits. Please contact us to know more details', + message: 'You are over platform\'s limits. Please contact us to know more details', layer: { id: 'layer0', index: 0, type: 'mapnik' } }] }); @@ -450,11 +450,11 @@ describe('user database timeout limit', function () { this.testClient.getLayergroup(expectedResponse, (err, timeoutError) => { assert.deepEqual(timeoutError, { - errors: [ 'You are over platform limits. Please contact us to know more details' ], + errors: [ 'You are over platform\'s limits. Please contact us to know more details' ], errors_with_context: [{ type: 'limit', subtype: 'datasource', - message: 'You are over platform limits. Please contact us to know more details', + message: 'You are over platform\'s limits. Please contact us to know more details', layer: { id: 'layer0', index: 0, type: 'mapnik' } }] }); @@ -554,11 +554,11 @@ describe('user database timeout limit', function () { this.testClient.getLayergroup(expectedResponse, (err, timeoutError) => { assert.deepEqual(timeoutError, { - errors: [ 'You are over platform limits. Please contact us to know more details' ], + errors: [ 'You are over platform\'s limits. Please contact us to know more details' ], errors_with_context: [{ type: 'limit', subtype: 'datasource', - message: 'You are over platform limits. Please contact us to know more details', + message: 'You are over platform\'s limits. Please contact us to know more details', layer: { id: 'torque-layer0', index: 0, type: 'torque' } }] }); @@ -685,11 +685,11 @@ describe('user database timeout limit', function () { this.testClient.getLayergroup(expectedResponse, (err, timeoutError) => { assert.deepEqual(timeoutError, { - errors: [ 'You are over platform limits. Please contact us to know more details' ], + errors: [ 'You are over platform\'s limits. Please contact us to know more details' ], errors_with_context: [{ type: 'limit', subtype: 'datasource', - message: 'You are over platform limits. Please contact us to know more details', + message: 'You are over platform\'s limits. Please contact us to know more details', layer: { id: 'layer0', index: 0, diff --git a/test/acceptance/user-render-timeout-limit.js b/test/acceptance/user-render-timeout-limit.js index 2fab657f..45e41f89 100644 --- a/test/acceptance/user-render-timeout-limit.js +++ b/test/acceptance/user-render-timeout-limit.js @@ -95,11 +95,11 @@ describe('user render timeout limit', function () { assert.ifError(err); assert.deepEqual(timeoutError, { - errors: ["You are over platform limits. Please contact us to know more details"], + errors: ["You are over platform\'s limits. Please contact us to know more details"], errors_with_context: [{ type: 'limit', subtype: 'render', - message: "You are over platform limits. Please contact us to know more details", + message: "You are over platform\'s limits. Please contact us to know more details", layer: { id: "layer0", index: 0, @@ -186,11 +186,11 @@ describe('user render timeout limit', function () { assert.ifError(err); assert.deepEqual(timeoutError, { - errors: ["You are over platform limits. Please contact us to know more details"], + errors: ["You are over platform\'s limits. Please contact us to know more details"], errors_with_context: [{ type: 'limit', subtype: 'render', - message: "You are over platform limits. Please contact us to know more details" + message: "You are over platform\'s limits. Please contact us to know more details" }] }); @@ -231,11 +231,11 @@ describe('user render timeout limit', function () { assert.ifError(err); assert.deepEqual(tile, { - errors: ['You are over platform limits. Please contact us to know more details'], + errors: ['You are over platform\'s limits. Please contact us to know more details'], errors_with_context: [{ type: 'limit', subtype: 'render', - message: 'You are over platform limits. Please contact us to know more details' + message: 'You are over platform\'s limits. Please contact us to know more details' }] }); @@ -276,11 +276,11 @@ describe('user render timeout limit', function () { assert.ifError(err); assert.deepEqual(tile, { - errors: ['You are over platform limits. Please contact us to know more details'], + errors: ['You are over platform\'s limits. Please contact us to know more details'], errors_with_context: [{ type: 'limit', subtype: 'render', - message: 'You are over platform limits. Please contact us to know more details' + message: 'You are over platform\'s limits. Please contact us to know more details' }] }); @@ -377,11 +377,11 @@ describe('user render timeout limit', function () { assert.ifError(err); assert.deepEqual(timeoutError, { - errors: ["You are over platform limits. Please contact us to know more details"], + errors: ["You are over platform\'s limits. Please contact us to know more details"], errors_with_context: [{ type: 'limit', subtype: 'render', - message: "You are over platform limits. Please contact us to know more details" + message: "You are over platform\'s limits. Please contact us to know more details" }] });