Fix row_too_large error handling

remotes/origin/dependabot/npm_and_yarn/node-fetch-2.6.1^2^2
Jorge Tarrero 4 years ago
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…
Cancel
Save