Do not crash if DNS creds do not work during startup

If DNS creds are invalid, then platform.start() keeps crashing on a
mail container update. For now, just log the error and move on.

Part of #406
This commit is contained in:
Girish Ramakrishnan
2017-08-28 14:55:35 -07:00
parent 8b9f44addc
commit 00786dda05
+3 -1
View File
@@ -329,7 +329,9 @@ function startMail(callback) {
async.mapSeries(records, function (record, iteratorCallback) {
subdomains.upsert(record.subdomain, record.type, record.values, iteratorCallback);
}, callback);
}, NOOP_CALLBACK); // do not crash if DNS creds do not work in startup sequence
callback();
});
});
});