Merge pull request #211 from tristanfisher/trivial_typo_fix

fix trivial typo in CollectMigrations error string
pull/212/head
Vojtech Vitek 2020-04-19 13:58:50 +02:00 committed by GitHub
commit 2769ad7b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func AddNamedMigration(filename string, up func(*sql.Tx) error, down func(*sql.T
// migrations folder and go func registry, and key them by version.
func CollectMigrations(dirpath string, current, target int64) (Migrations, error) {
if _, err := os.Stat(dirpath); os.IsNotExist(err) {
return nil, fmt.Errorf("%s directory does not exists", dirpath)
return nil, fmt.Errorf("%s directory does not exist", dirpath)
}
var migrations Migrations