golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
15.14k stars 1.39k forks source link

🧑‍💻 improve error message for invalid source, database, resolves: #1102 #1103

Closed Shion1305 closed 3 months ago

Shion1305 commented 3 months ago

https://github.com/golang-migrate/migrate/issues/1102

This PR improves error message for invalid database or source

coveralls commented 3 months ago

Coverage Status

coverage: 56.335%. remained the same when pulling cabb2db836aeddfc1f6612931897275685bea7bb on Shion1305:shion/issue-1102 into 04b36ebaac41964a54faa3e4b35254963dd88a3d on golang-migrate:master.

Shion1305 commented 3 months ago

CI indicates that this PR has lint error, however, this is due to golangci-lint, as described in https://github.com/golang-migrate/migrate/issues/1104. Merging https://github.com/golang-migrate/migrate/pull/1105 and rebasing should solve this.