- Minor bug fix, handled the exception error message. (#131)

master
Hardik Thakker 2020-03-30 12:10:05 +05:30 committed by GitHub
parent 2c66361bca
commit 812493657a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
app.js
View File

@ -479,7 +479,7 @@ initDb(config.databaseConnectionString, async (err, db) => {
try{
await runIndexing(app);
}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')));
}
}catch(ex){
console.error(colors.red('Error starting expressCart app:' + err));
console.error(colors.red('Error starting expressCart app:' + ex.message));
process.exit(2);
}
});