Ignore Knex ECONNRESET errors

Knex handles them internally and reconnects.
cshd
Dragory 2020-11-02 17:20:18 +02:00
parent 910d410d6c
commit 2ae12ee049
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ module.exports = {
return;
}
if (message === "Connection Error: Error: read ECONNRESET") {
// Knex automatically handles the reconnection
return;
}
console.warn(message);
},
},