fails silently when `src/config/database.js` is missing
Any command, including exp-api -v, exits with 0 status without printing anything when it can't open src/config/database.js.
There are 4 issues:
-
exp-api -vshouldn't be looking for any files to begin with -
utils.checkLangAndDBdoesn't handle error from missing./src: https://github.com/tolustar/express-api-cli/blob/d39a7ce7f3da09188023519a595e58bb2cadc51a/bin/utils.js#L86 -
utils.checkLangAndDBattempts to print error from missing./src/config/database.jswithout importingchalk: https://github.com/tolustar/express-api-cli/blob/d39a7ce7f3da09188023519a595e58bb2cadc51a/bin/utils.js#L93-L107 -
all unhandled errors are swallowed: https://github.com/tolustar/express-api-cli/blob/d39a7ce7f3da09188023519a595e58bb2cadc51a/bin/generators.js#L175