mirror of
https://github.com/Hopiu/webapi-eca.git
synced 2026-03-22 08:50:24 +00:00
- [ ] task list test
- [x] solved
This commit is contained in:
parent
19c6a7403f
commit
d01b40d5a2
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ fs.readFile(path.resolve(__dirname, '..', 'config', 'config.json'), 'utf8', func
|
|||
}
|
||||
var config = JSON.parse(data);
|
||||
if(!config.http_port || !config.db_port || !config.crypto_key) {
|
||||
log.error('RS', 'you forgot to define either http_port, db_port, crypto_key, or even all of them!');
|
||||
log.error('RS', new Error('you forgot to define either http_port, db_port, crypto_key, or even all of them!'));
|
||||
} else {
|
||||
log.print('RS', 'Initialzing DB');
|
||||
db.init(config.db_port, config.crypto_key, function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue