- Minor bug fix, handled the exception error message. (#131)
parent
2c66361bca
commit
812493657a
4
app.js
4
app.js
|
@ -479,7 +479,7 @@ initDb(config.databaseConnectionString, async (err, db) => {
|
||||||
try{
|
try{
|
||||||
await runIndexing(app);
|
await runIndexing(app);
|
||||||
}catch(ex){
|
}catch(ex){
|
||||||
console.error(colors.red('Error setting up indexes:' + err));
|
console.error(colors.red('Error setting up indexes:' + ex.message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -491,7 +491,7 @@ initDb(config.databaseConnectionString, async (err, db) => {
|
||||||
console.log(colors.green('expressCart running on host: http://localhost:' + app.get('port')));
|
console.log(colors.green('expressCart running on host: http://localhost:' + app.get('port')));
|
||||||
}
|
}
|
||||||
}catch(ex){
|
}catch(ex){
|
||||||
console.error(colors.red('Error starting expressCart app:' + err));
|
console.error(colors.red('Error starting expressCart app:' + ex.message));
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue