commandbox-modules / commandbox-migrations

MIT License
7 stars 9 forks source link

Add more debugging when connections don't work #24

Closed lmajano closed 3 years ago

lmajano commented 4 years ago

As it stands, the errors when having connection issues are not nice.

❯ migrate install

ERROR (5.0.2-alpha+00170)

Could not create connection to database server.

Nothing more nothing less. Looks like a hibernate error :(

We need to improve these error messages and show WHY we could not connect.

Daemach commented 3 years ago

And also some kind of indication of which migration file failed in the case of SQL errors. A simple dump of the filename while spooling through the migrations would work. As an example, which of the 6 migrations that needed to run here failed? https://www.screencast.com/t/ATWzEPeeTx0I

elpete commented 3 years ago

@lmajano To get the full exception information, use --verbose

elpete commented 3 years ago

@Daemach That is a good suggestion. I'll add a new ticket for it.