From 812493657ac037493f48fd2959cddf9002205efa Mon Sep 17 00:00:00 2001 From: Hardik Thakker Date: Mon, 30 Mar 2020 12:10:05 +0530 Subject: [PATCH] - Minor bug fix, handled the exception error message. (#131) --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 0ac9704..67321eb 100644 --- a/app.js +++ b/app.js @@ -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); } });