test: log stack

This commit is contained in:
Barış Soner Uşaklı
2022-02-17 15:13:14 -05:00
parent 70f35e56ec
commit fe610f0daf

View File

@@ -6,6 +6,7 @@ const databaseName = nconf.get('database');
const winston = require('winston');
if (!databaseName) {
winston.error(new Error('stack').stack);
winston.error(new Error('Database type not set! Run ./nodebb setup'));
process.exit();
}