fails silently when `src/config/database.js` is missing
Opened this issue · 0 comments
lightmare commented
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 -v
shouldn't be looking for any files to begin with -
utils.checkLangAndDB
doesn't handle error from missing./src
:
Line 86 in d39a7ce
-
utils.checkLangAndDB
attempts to print error from missing./src/config/database.js
without importingchalk
:
Lines 93 to 107 in d39a7ce
-
all unhandled errors are swallowed:
express-api-cli/bin/generators.js
Line 175 in d39a7ce