Fix row_too_large error handling
This commit is contained in:
parent
053d28edc5
commit
97310ba7ff
@ -138,7 +138,7 @@ PostgresFormat.prototype.sendResponse = function (opts, callback) {
|
||||
query.on('error', function (err) {
|
||||
that.error = err;
|
||||
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,
|
||||
type: 'row_size_limit_exceeded',
|
||||
error: err.message
|
||||
|
Loading…
Reference in New Issue
Block a user