More verbose message instead of "Unable to connect to the database" when something is wrong
See original GitHub issueIssue type:
[X] question [X] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[x] mssql
[ ] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
TypeORM version:
[ ] latest
[ ] @next
[x] 0.2.7
(or put your version here)
Steps to reproduce or a small repository showing the problem:
I’ve created a project with https://github.com/nestjs/nest Now when something is wrong with a credential or when I have an error in my entity file I got the error ‘Unable to connect to the database.’ instead of an error pointing to what is really wrong e.g. wrong credential, error in relationship between entities etc.
My suggestion is to make this more verbose so you know what is wrong. Now I literally have no clue where to look beside I know it has something to do with a many-to-one relationship
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
I found my solution from this link. In your configuration, try changing src to dist:
"entities": ["dist/**/*.entity.js"]
thank you! it’s running