[BUG] Data Injector has an uncaught error for failed MongoDB connection
Closed this issue · 1 comments
Twaha-Rahman commented
Describe the bug
Currently if the data injector script fails to connect to MongoDB, it throws an uncaught error.
To Reproduce
How can we reproduce this bug?
- Remove the
.env
file or change the mongo-url in the file to an invalid link - Run
npm run fill-db
- See the error in the console
Expected behavior
We need to catch that error and log it and exit process.
Twaha-Rahman commented
#54 fixed this bug.