add new error message

This commit is contained in:
Eneko Lakasta
2018-06-29 15:01:12 +02:00
parent 028c3f9aec
commit ee25585f06
@@ -56,16 +56,18 @@ function populateTimeoutErrors (errors) {
error.subtype = 'render';
}
if (isDatasourceTimeoutError(error)) {
error.subtype = 'datasource';
}
if (isTimeoutError(error)) {
error.message = 'You are over platform\'s limits. Please contact us to know more details';
error.type = 'limit';
error.http_status = 429;
}
if (isDatasourceTimeoutError(error)) {
error.subtype = 'datasource';
error.message = 'You are over platform\'s limits: SQL query timeout error.' +
' Refactor your query before running again or contact CARTO support for more details.';
}
return error;
});
}