Skip to content

Commit

Permalink
Fix error message for missing migration files (knex#4937)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpontis committed Jan 17, 2022
1 parent a6d26ad commit e171d61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/migrations/migrate/Migrator.js
Expand Up @@ -562,8 +562,9 @@ function validateMigrationList(migrationSource, migrations) {
const [all, completed] = migrations;
const diff = getMissingMigrations(migrationSource, completed, all);
if (!isEmpty(diff)) {
const names = diff.map((d) => d.name);
throw new Error(
`The migration directory is corrupt, the following files are missing: ${diff.join(
`The migration directory is corrupt, the following files are missing: ${names.join(
', '
)}`
);
Expand Down

0 comments on commit e171d61

Please sign in to comment.