From 97310ba7ff831ac1c886d1804f751a83f825bc0a Mon Sep 17 00:00:00 2001 From: Jorge Tarrero Date: Thu, 22 Oct 2020 16:48:50 +0200 Subject: [PATCH] Fix row_too_large error handling --- lib/models/formats/pg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/formats/pg.js b/lib/models/formats/pg.js index 6a798b42..4527defa 100644 --- a/lib/models/formats/pg.js +++ b/lib/models/formats/pg.js @@ -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