From 609bf13765346d66f936aed349c9d6fad46699c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Fri, 23 Mar 2018 11:42:53 +0100 Subject: [PATCH] correct error message in rate limit --- lib/cartodb/middleware/rate-limit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/middleware/rate-limit.js b/lib/cartodb/middleware/rate-limit.js index d7cc3598..b3c6d7fe 100644 --- a/lib/cartodb/middleware/rate-limit.js +++ b/lib/cartodb/middleware/rate-limit.js @@ -46,7 +46,9 @@ function rateLimit(userLimitsApi, endpointGroup = null) { // retry is floor rounded in seconds by redis-cell res.set('Retry-After', retry + 1); - const rateLimitError = new Error('You are over the limits.'); + let rateLimitError = new Error( + 'You are over platform\'s limits. Please contact us to know more details' + ); rateLimitError.http_status = 429; rateLimitError.type = 'limit'; rateLimitError.subtype = 'rate-limit';