let exceptional circumstances be exceptional

This commit is contained in:
Riley Davis
2016-11-04 10:26:39 -06:00
parent 1bab2d3e4e
commit 5bef61abe9
-1
View File
@@ -8,6 +8,5 @@ Setting.update({id: '1'}, {$setOnInsert: defaults}, {upsert: true})
mongoose.disconnect();
}).catch((err) => {
console.error(`failed to create the settings object ${JSON.stringify(err)}`);
mongoose.disconnect();
throw new Error(err); // just to be safe
});