Merge pull request #670 from CartoDB/chore/ch106733/improve-sql-api-error-handling
Fix row_too_large error handling
This commit is contained in:
commit
8a630186c8
@ -138,7 +138,7 @@ PostgresFormat.prototype.sendResponse = function (opts, callback) {
|
|||||||
query.on('error', function (err) {
|
query.on('error', function (err) {
|
||||||
that.error = err;
|
that.error = err;
|
||||||
if (err.message && err.message.match(/row too large, was \d* bytes/i)) {
|
if (err.message && err.message.match(/row too large, was \d* bytes/i)) {
|
||||||
return console.error(JSON.stringify({
|
console.error(JSON.stringify({
|
||||||
username: opts.username,
|
username: opts.username,
|
||||||
type: 'row_size_limit_exceeded',
|
type: 'row_size_limit_exceeded',
|
||||||
error: err.message
|
error: err.message
|
||||||
|
Loading…
Reference in New Issue
Block a user