diff --git a/print-server.js b/print-server.js index 8b7f6fd..4454240 100644 --- a/print-server.js +++ b/print-server.js @@ -101,7 +101,7 @@ class PrintServer { this.errorHandler(err); } errorHandler(err) { - if (err.code === 'ETIMEDOUT') { + if (['ETIMEDOUT', 'ECONNRESET', 'PROTOCOL_CONNECTION_LOST'].includes(err.code)) { if (!this.dbDown) { this.dbDown = true; this.serverLog('error', `DB connection lost: ${err.message}`);