From 7ee875f7c7d6ed203d7d00432361a8bc77197c35 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Tue, 13 Jun 2017 13:39:03 +0300 Subject: [PATCH] updated index definitions --- imap.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/imap.js b/imap.js index b19c15b9..4e12b89e 100644 --- a/imap.js +++ b/imap.js @@ -2140,7 +2140,17 @@ module.exports = done => { }; let indexpos = 0; - let ensureIndexes = () => { + let ensureIndexes = err => { + if (err) { + server.logger.error( + { + tnx: 'mongo', + err + }, + 'Failed creating index', + err.message + ); + } if (indexpos >= setupIndexes.length) { server.logger.info( {